You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_w3fdif: do not output extra frame at start with deint=interlaced
This commit is contained in:
@@ -526,6 +526,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!s->prev)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {
|
if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {
|
||||||
AVFrame *out = av_frame_clone(s->cur);
|
AVFrame *out = av_frame_clone(s->cur);
|
||||||
if (!out)
|
if (!out)
|
||||||
@@ -537,9 +540,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
return ff_filter_frame(ctx->outputs[0], out);
|
return ff_filter_frame(ctx->outputs[0], out);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s->prev)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
ret = filter(ctx, 0);
|
ret = filter(ctx, 0);
|
||||||
if (ret < 0 || s->mode == 0)
|
if (ret < 0 || s->mode == 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user