History

avfilter/vf_w3fdif: do not output extra frame at start with deint=interlaced

Paul B Mahol committed 5 years ago

Commit bbbf9581 parent 85c169f1 file · +3 −3Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_w3fdif.c+3−3
@@ -526,6 +526,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 525 unmodified lines
526526 return AVERROR(ENOMEM);
527527 }
528528
529+ if (!s->prev)
530+ return 0;
531+
529532 if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {
530533 AVFrame *out = av_frame_clone(s->cur);
531534 if (!out)
@@ -537,9 +540,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 5 unmodified lines
537540 return ff_filter_frame(ctx->outputs[0], out);
538541 }
539542
540− if (!s->prev)
541− return 0;
542−
543543 ret = filter(ctx, 0);
544544 if (ret < 0 || s->mode == 0)
545545 return ret;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t