ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Sat Oct  1 
11:47:23 2016 +0200| [d10102d23c9467d4eb84f58e0cd12be284b982f6] | committer: 
Anton Khirnov

avconv: set the encoding framerate when the output is CFR

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d10102d23c9467d4eb84f58e0cd12be284b982f6
---

 avconv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/avconv.c b/avconv.c
index 59eb300..87923b9 100644
--- 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 &&

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to