fftools/ffmpeg_enc: apply -top to individual encoded frames
Fixes #9339.
(Adapted from commit 43a0004b5c)
This commit is contained in:
parent
ae14d9c06b
commit
dd885ab2f5
4 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue