avconv: set the encoding framerate when the output is CFR
authorAnton Khirnov <anton@khirnov.net>
Sat, 1 Oct 2016 09:47:23 +0000 (11:47 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 2 Oct 2016 09:41:45 +0000 (11:41 +0200)
avconv.c

index 59eb300..87923b9 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -1978,6 +1978,8 @@ static int init_output_stream_encode(OutputStream *ost)
             ost->filter->filter->inputs[0]->sample_aspect_ratio;
         enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format;
 
+        enc_ctx->framerate = ost->frame_rate;
+
         ost->st->avg_frame_rate = ost->frame_rate;
 
         if (dec_ctx &&