History

avfilter/libplacebo: only mark frame fields when deinterlacing

Avoids an unnecessary copy of the frame in the frame queue when not deinterlacing anyways.

Niklas Haas committed 1 year ago

Commit 123cccb1 parent 794cba81 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_libplacebo.c+1−1
@@ -969,7 +969,7 @@ static int handle_input(AVFilterContext *ctx, LibplaceboInput *input) · 968 unmodified lines
969969 pl_queue_push(input->queue, &(struct pl_source_frame) {
970970 .pts = in->pts * av_q2d(inlink->time_base),
971971 .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,
973973 .frame_data = in,
974974 .map = map_frame,
975975 .unmap = unmap_frame,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t