mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-21 22:40:18 +01:00
fftools/ffmpeg_enc: apply -top to individual encoded frames
Fixes #9339.
(Adapted from commit 43a0004b5c)
This commit is contained in:
committed by
Marton Balint
parent
ae14d9c06b
commit
dd885ab2f5
@@ -1278,6 +1278,9 @@ static void do_video_out(OutputFile *of,
|
||||
av_log(NULL, AV_LOG_DEBUG, "Forced keyframe at time %f\n", pts_time);
|
||||
}
|
||||
|
||||
if (ost->top_field_first >= 0)
|
||||
in_picture->top_field_first = !!ost->top_field_first;
|
||||
|
||||
ret = encode_frame(of, ost, in_picture);
|
||||
if (ret < 0)
|
||||
exit_program(1);
|
||||
|
||||
Reference in New Issue
Block a user