History

avfilter/libplacebo: strip interlaced flag when deinterlacing

Niklas Haas committed 1 year ago

Commit 83c1b341 parent 123cccb1 file · +2 −0Browse files

Unified · Split

libavfilter/vf_libplacebo.c+2−0
@@ -856,6 +856,8 @@ static int output_frame(AVFilterContext *ctx, int64_t pts) · 855 unmodified lines
856856 out->color_range = outlink->color_range;
857857 if (s->fps.num)
858858 out->duration = 1;
859+ if (s->deinterlace)
860+ out->flags &= ~(AV_FRAME_FLAG_INTERLACED | AV_FRAME_FLAG_TOP_FIELD_FIRST);
859861
860862 if (s->apply_dovi && av_frame_get_side_data(ref, AV_FRAME_DATA_DOVI_METADATA)) {
861863 /* Output of dovi reshaping is always BT.2020+PQ, so infer the correct

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