提交 48f7f29f 编写于 作者: B Baptiste Coudurier

In yadif filter, use current frame when previous is missing,

better results for the first frame

Originally committed as revision 25202 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 b9f9e59a
......@@ -197,13 +197,12 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
yadif->cur = yadif->next;
yadif->next = picref;
if (!yadif->prev)
yadif->prev = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
AV_PERM_REUSE, link->w, link->h);
if(!yadif->cur)
return;
if (!yadif->prev)
yadif->prev = avfilter_ref_buffer(yadif->cur, AV_PERM_READ);
yadif->out = avfilter_get_video_buffer(ctx->outputs[0], AV_PERM_WRITE | AV_PERM_PRESERVE |
AV_PERM_REUSE, link->w, link->h);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册