[FFmpeg-cvslog] r20479 - trunk/libavfilter/vf_crop.c
stefano
subversion
Sun Nov 8 23:47:10 CET 2009
Author: stefano
Date: Sun Nov 8 23:47:10 2009
New Revision: 20479
Log:
Fix start_frame(), which was issuing chroma artifacts with planar
formats with more than 8 bits per pixel (e.g. YUVXXXP16).
Modified:
trunk/libavfilter/vf_crop.c
Modified: trunk/libavfilter/vf_crop.c
==============================================================================
--- trunk/libavfilter/vf_crop.c Sun Nov 8 23:39:10 2009 (r20478)
+++ trunk/libavfilter/vf_crop.c Sun Nov 8 23:47:10 2009 (r20479)
@@ -180,7 +180,7 @@ static void start_frame(AVFilterLink *li
for (i = 1; i < 3; i ++) {
if (ref2->data[i]) {
ref2->data[i] += (crop->y >> crop->vsub) * ref2->linesize[i];
- ref2->data[i] += crop->x >> crop->hsub;
+ ref2->data[i] += ((crop->x * crop->bpp) >> 3) >> crop->hsub;
}
}
}
More information about the ffmpeg-cvslog
mailing list