[FFmpeg-devel] (no subject)

Михаил Micky53 at mail.ru
Sat Nov 16 16:40:49 CET 2013


libswscale forgot copy last pixel's when converted AV_PIX_FMT_YUV420P10 to  
AV_PIX_FMT_YUV420P16 for example.


*** ffmpeg-1.2.4-orig/libswscale/swscale_unscaled.c	2013-11-16  
18:37:40.050228261 +0400
--- ffmpeg-1.2.4/libswscale/swscale_unscaled.c	2013-11-16  
18:39:49.742824020 +0400
***************
*** 916,927 ****
                           }
   #define COPY_UP(r,w) \
       if(shiftonly){\
!         for (j = 0; j < length; j++){ \
               unsigned int v= r(&srcPtr2[j]);\
               w(&dstPtr2[j], v<<(dst_depth-src_depth));\
           }\
       }else{\
!         for (j = 0; j < length; j++){ \
               unsigned int v= r(&srcPtr2[j]);\
               w(&dstPtr2[j], (v<<(dst_depth-src_depth)) | \
                           (v>>(2*src_depth-dst_depth)));\
--- 916,927 ----
                           }
   #define COPY_UP(r,w) \
       if(shiftonly){\
!         for (j = orig_length - length; j < orig_length; j++){ \
               unsigned int v= r(&srcPtr2[j]);\
               w(&dstPtr2[j], v<<(dst_depth-src_depth));\
           }\
       }else{\
!         for (j = orig_length - length; j < orig_length; j++){ \
               unsigned int v= r(&srcPtr2[j]);\
               w(&dstPtr2[j], (v<<(dst_depth-src_depth)) | \
                           (v>>(2*src_depth-dst_depth)));\


More information about the ffmpeg-devel mailing list