Avoids an unnecessary copy of the frame in the frame queue when not deinterlacing anyways.
Unified · Split
| @@ -969,7 +969,7 @@ static int handle_input(AVFilterContext *ctx, LibplaceboInput *input) · 968 unmodified lines | ||
| 969 | 969 | pl_queue_push(input->queue, &(struct pl_source_frame) { |
| 970 | 970 | .pts = in->pts * av_q2d(inlink->time_base), |
| 971 | 971 | .duration = in->duration * av_q2d(inlink->time_base), |
| 972 | − .first_field = pl_field_from_avframe(in), | |
| 972 | + .first_field = s->deinterlace ? pl_field_from_avframe(in) : PL_FIELD_NONE, | |
| 973 | 973 | .frame_data = in, |
| 974 | 974 | .map = map_frame, |
| 975 | 975 | .unmap = unmap_frame, |