提交 ac74dfa4 编写于 作者: S Stefano Sabatini

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
上级 5f36d94d
......@@ -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;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册