diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-08 22:47:10 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-08 22:47:10 +0000 |
commit | ac74dfa436b5f13394db8adc3b2c376646f752bc (patch) | |
tree | 874d584bbb76354d61809abd0b9204423181cd93 /libavfilter/vf_crop.c | |
parent | 5f36d94d9d8b4b27287156b494853ccea4a5c1bf (diff) | |
download | ffmpeg-ac74dfa436b5f13394db8adc3b2c376646f752bc.tar.gz |
Fix start_frame(), which was issuing chroma artifacts with planar
formats with more than 8 bits per pixel (e.g. YUVXXXP16).
Originally committed as revision 20479 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_crop.c')
-rw-r--r-- | libavfilter/vf_crop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 45415e11b1..0ff5f76c6d 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -180,7 +180,7 @@ static void start_frame(AVFilterLink *link, AVFilterPicRef *picref) 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; } } } |