diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-09 11:50:56 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-09 12:10:04 +0200 |
commit | 54353ce88eb5594c480d87888904d9ae8f39355d (patch) | |
tree | 2daed67c26e8382897bdd82748e0c4f3e83f6f4c /libavfilter | |
parent | 3475c8342c850bddff7c5bd43f608b87f7a4ded9 (diff) | |
download | ffmpeg-54353ce88eb5594c480d87888904d9ae8f39355d.tar.gz |
avfilter/vf_estdif: fix recently introduced regression
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_estdif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c index 2bb1680f43..eae2650a21 100644 --- a/libavfilter/vf_estdif.c +++ b/libavfilter/vf_estdif.c @@ -346,7 +346,7 @@ static int deinterlace_slice(AVFilterContext *ctx, void *arg, const int redge = s->redge; const int depth = s->depth; const int interlaced = !!(in->flags & AV_FRAME_FLAG_INTERLACED); - const int tff = (s->field == (s->parity == -1 ? interlaced ? (in->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST) : 1 : + const int tff = (s->field == (s->parity == -1 ? interlaced ? !!(in->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST) : 1 : s->parity ^ 1)); for (int plane = 0; plane < s->nb_planes; plane++) { |