mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fftools/ffmpeg: copy average framerate for streamcopy, when known
This commit is contained in:
parent
04feb1c038
commit
f6ea2ee005
@ -3144,7 +3144,11 @@ static int init_output_stream_streamcopy(OutputStream *ost)
|
||||
|
||||
if (!ost->frame_rate.num)
|
||||
ost->frame_rate = ist->framerate;
|
||||
ost->st->avg_frame_rate = ost->frame_rate;
|
||||
|
||||
if (ost->frame_rate.num)
|
||||
ost->st->avg_frame_rate = ost->frame_rate;
|
||||
else
|
||||
ost->st->avg_frame_rate = ist->st->avg_frame_rate;
|
||||
|
||||
ret = avformat_transfer_internal_stream_timing_info(of->ctx->oformat, ost->st, ist->st, copy_tb);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user