History

avfilter/vf_w3fdif: not interlaced frames are filtered like tff

Paul B Mahol committed 5 years ago

Commit ddd6c5c1 parent b112c861 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_w3fdif.c+1−1
@@ -381,7 +381,7 @@ static int deinterlace_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_ · 380 unmodified lines
381381 const int start = (height * jobnr) / nb_jobs;
382382 const int end = (height * (jobnr+1)) / nb_jobs;
383383 const int max = s->max;
384− const int tff = s->field == (s->parity == -1 ? cur->top_field_first == 1 : s->parity == 0 ? 1 : 0);
384+ const int tff = (s->field == (s->parity == -1 ? cur->top_field_first == cur->interlaced_frame : s->parity == 0 ? !cur->interlaced_frame : cur->interlaced_frame));
385385 int j, y_in, y_out;
386386
387387 /* copy unchanged the lines of the field */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t