Skip to content

Commit

Permalink
avfilter/vf_w3fdif: not interlaced frames are filtered like tff
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpl committed Jan 3, 2021
1 parent b112c86 commit ddd6c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavfilter/vf_w3fdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ddd6c5c

Please sign in to comment.