mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_w3fdif: fix parity in frame mode
This commit is contained in:
parent
64ea15f050
commit
d4902751cb
@ -382,7 +382,9 @@ 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 == cur->interlaced_frame : s->parity == 0 ? !cur->interlaced_frame : cur->interlaced_frame));
|
||||
const int interlaced = cur->interlaced_frame;
|
||||
const int tff = s->field == (s->parity == -1 ? interlaced ? cur->top_field_first : 1 :
|
||||
s->parity ^ 1);
|
||||
int j, y_in, y_out;
|
||||
|
||||
/* copy unchanged the lines of the field */
|
||||
|
Loading…
x
Reference in New Issue
Block a user