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

Unified · Split

libavfilter/vf_w3fdif.c+3−3
@@ -526,6 +526,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 525 unmodified lines
526 return AVERROR(ENOMEM);526 return AVERROR(ENOMEM);
527 }527 }
528 528
529 if (!s->prev)
530 return 0;
531
529 if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {532 if ((s->deint && !s->cur->interlaced_frame) || ctx->is_disabled) {
530 AVFrame *out = av_frame_clone(s->cur);533 AVFrame *out = av_frame_clone(s->cur);
531 if (!out)534 if (!out)
@@ -537,9 +540,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 5 unmodified lines
537 return ff_filter_frame(ctx->outputs[0], out);540 return ff_filter_frame(ctx->outputs[0], out);
538 }541 }
539 542
540 if (!s->prev)
541 return 0;
542
543 ret = filter(ctx, 0);543 ret = filter(ctx, 0);
544 if (ret < 0 || s->mode == 0)544 if (ret < 0 || s->mode == 0)
545 return ret;545 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