Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -381,7 +381,7 @@ static int deinterlace_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_ · 380 unmodified lines | |||
| 381 | const int start = (height * jobnr) / nb_jobs; | 381 | const int start = (height * jobnr) / nb_jobs; |
| 382 | const int end = (height * (jobnr+1)) / nb_jobs; | 382 | const int end = (height * (jobnr+1)) / nb_jobs; |
| 383 | const int max = s->max; | 383 | 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)); |
| 385 | int j, y_in, y_out; | 385 | int j, y_in, y_out; |
| 386 | 386 | ||
| 387 | /* copy unchanged the lines of the field */ | 387 | /* copy unchanged the lines of the field */ |