mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lavfi/tinterlace: make video as interlaced in mode 6
This is useful for marking progressive video processed by the filter as interlaced, avoiding the interlaced flag to switch back and forth at each frame.
This commit is contained in:
parent
820c023142
commit
837d034787
@ -256,6 +256,7 @@ static void end_frame(AVFilterLink *inlink)
|
|||||||
case 6: /* re-interlace preserving image height, double frame rate */
|
case 6: /* re-interlace preserving image height, double frame rate */
|
||||||
/* output current frame first */
|
/* output current frame first */
|
||||||
out = avfilter_ref_buffer(cur, AV_PERM_READ);
|
out = avfilter_ref_buffer(cur, AV_PERM_READ);
|
||||||
|
out->video->interlaced = 1;
|
||||||
|
|
||||||
avfilter_start_frame(outlink, out);
|
avfilter_start_frame(outlink, out);
|
||||||
avfilter_draw_slice(outlink, 0, outlink->h, 1);
|
avfilter_draw_slice(outlink, 0, outlink->h, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user