Commit 8db301de authored by Anton Khirnov's avatar Anton Khirnov Committed by Tobias Rapp

ffmpeg: set the encoding framerate when the output is CFR

(cherry picked from Libav commit d10102d2)
Signed-off-by: 's avatarTobias Rapp <t.rapp@noa-archive.com>
parent 2db5ab73
......@@ -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 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment