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
This commit is contained in:
Stefano Sabatini 2009-11-08 22:47:10 +00:00
parent 5f36d94d9d
commit ac74dfa436
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}
}