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:
parent
794cba812e
commit
123cccb621
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue