mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
ffmpeg: set the encoding framerate when the output is CFR
(cherry picked from Libav commit d10102d23c
)
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
This commit is contained in:
parent
2db5ab73d4
commit
8db301dead
2
ffmpeg.c
2
ffmpeg.c
@ -3314,6 +3314,8 @@ static int init_output_stream_encode(OutputStream *ost)
|
||||
enc_ctx->bits_per_raw_sample = FFMIN(dec_ctx->bits_per_raw_sample,
|
||||
av_pix_fmt_desc_get(enc_ctx->pix_fmt)->comp[0].depth);
|
||||
|
||||
enc_ctx->framerate = ost->frame_rate;
|
||||
|
||||
ost->st->avg_frame_rate = ost->frame_rate;
|
||||
|
||||
if (!dec_ctx ||
|
||||
|
Loading…
Reference in New Issue
Block a user