fixing 410 -> 420
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Feb 2003 17:35:49 +0000 (17:35 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Feb 2003 17:35:49 +0000 (17:35 +0000)
Originally committed as revision 1591 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgconvert.c

index 5f11b93..cfebe24 100644 (file)
@@ -1370,7 +1370,7 @@ int img_convert(AVPicture *dst, int dst_pix_fmt,
         for(i = 1;i <= 2; i++)
             resize_func(dst->data[i], dst->linesize[i],
                         src->data[i], src->linesize[i],
-                        w, h);
+                        dst_width>>dst_pix->x_chroma_shift, dst_height>>dst_pix->y_chroma_shift);
        return 0;
     }