1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avfilter/libplacebo: only mark frame fields when deinterlacing

Avoids an unnecessary copy of the frame in the frame queue when not
deinterlacing anyways.
This commit is contained in:
Niklas Haas
2025-02-16 16:22:07 +01:00
parent 794cba812e
commit 123cccb621

View File

@@ -969,7 +969,7 @@ static int handle_input(AVFilterContext *ctx, LibplaceboInput *input)
pl_queue_push(input->queue, &(struct pl_source_frame) {
.pts = in->pts * av_q2d(inlink->time_base),
.duration = in->duration * av_q2d(inlink->time_base),
.first_field = pl_field_from_avframe(in),
.first_field = s->deinterlace ? pl_field_from_avframe(in) : PL_FIELD_NONE,
.frame_data = in,
.map = map_frame,
.unmap = unmap_frame,