diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-10-01 11:47:23 +0200 |
---|---|---|
committer | Tobias Rapp <t.rapp@noa-archive.com> | 2017-03-17 11:54:38 +0100 |
commit | 8db301deadfcf113fb274881e65afcbe3e1bd645 (patch) | |
tree | d285b18b1e03a7a478f13025e09aec6a4342c089 | |
parent | 2db5ab73d43a8c22616e686ab12f94223910c761 (diff) | |
download | ffmpeg-8db301deadfcf113fb274881e65afcbe3e1bd645.tar.gz |
ffmpeg: set the encoding framerate when the output is CFR
(cherry picked from Libav commit d10102d23c9467d4eb84f58e0cd12be284b982f6)
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 || |