You've already forked FFmpeg
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user