Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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; |