summaryrefslogtreecommitdiff
path: root/libavfilter/vf_estdif.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2021-05-04 21:04:59 +0200
committerPaul B Mahol <onemda@gmail.com>2021-07-16 09:22:36 +0200
commitb7e350af3e8eaeb4825646a4bcef7fa051bd0a73 (patch)
tree59a032bf044d4c87fe09312a8b30087cbe0f3361 /libavfilter/vf_estdif.c
parent03a8d9c7fdf814bb551b608ca959968629a21ecb (diff)
avfilter/[vf_nnedi, vf_estdif]: check interlaced flag on correct frame
Fixes regression in vf_nnedi after 24dc6d386c6f7edb8f6945319f53a7f0b1642bb8 and vf_estdif while at it. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Diffstat (limited to 'libavfilter/vf_estdif.c')
-rw-r--r--libavfilter/vf_estdif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c
index 192837ab0f..863d453775 100644
--- a/libavfilter/vf_estdif.c
+++ b/libavfilter/vf_estdif.c
@@ -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;