diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-01-03 22:48:40 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-01-03 23:09:39 +0100 |
commit | ddd6c5cdc05fe889f6d0b88e3237e7db564bf2ea (patch) | |
tree | feb0ddd2ffe6a663974880b81e96a0379102bdf4 /libavfilter/vf_w3fdif.c | |
parent | b112c86a2eaefb3a28fd851ed8cca579b3d79f1a (diff) | |
download | ffmpeg-ddd6c5cdc05fe889f6d0b88e3237e7db564bf2ea.tar.gz |
avfilter/vf_w3fdif: not interlaced frames are filtered like tff
Diffstat (limited to 'libavfilter/vf_w3fdif.c')
-rw-r--r-- | libavfilter/vf_w3fdif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_w3fdif.c b/libavfilter/vf_w3fdif.c index 685f7679f0..bbf1d026e2 100644 --- a/libavfilter/vf_w3fdif.c +++ b/libavfilter/vf_w3fdif.c @@ -381,7 +381,7 @@ static int deinterlace_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_ const int start = (height * jobnr) / nb_jobs; const int end = (height * (jobnr+1)) / nb_jobs; const int max = s->max; - const int tff = s->field == (s->parity == -1 ? cur->top_field_first == 1 : s->parity == 0 ? 1 : 0); + const int tff = (s->field == (s->parity == -1 ? cur->top_field_first == cur->interlaced_frame : s->parity == 0 ? !cur->interlaced_frame : cur->interlaced_frame)); int j, y_in, y_out; /* copy unchanged the lines of the field */ |