1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/[vf_nnedi, vf_estdif]: check interlaced flag on correct frame

Fixes regression in vf_nnedi after
24dc6d386c and vf_estdif while at it.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow 2021-05-04 21:04:59 +02:00 committed by Paul B Mahol
parent 03a8d9c7fd
commit b7e350af3e
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ static int config_input(AVFilterLink *inlink)
return 0;
}
if ((s->deint && !in->interlaced_frame) || ctx->is_disabled) {
if ((s->deint && !s->prev->interlaced_frame) || ctx->is_disabled) {
s->prev->pts *= 2;
ret = ff_filter_frame(ctx->outputs[0], s->prev);
s->prev = in;

View File

@ -694,7 +694,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return 0;
}
if ((s->deint && !in->interlaced_frame) || ctx->is_disabled) {
if ((s->deint && !s->prev->interlaced_frame) || ctx->is_disabled) {
s->prev->pts *= 2;
ret = ff_filter_frame(ctx->outputs[0], s->prev);
s->prev = in;