[FFmpeg-cvslog] avconv: set output avg_frame_rate when known

Anton Khirnov git at videolan.org
Sun May 18 14:51:39 CEST 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun May 11 18:00:48 2014 +0200| [93afb6c98df876b15e3d911a9450ad55f92080ce] | committer: Anton Khirnov

avconv: set output avg_frame_rate when known

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

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

diff --git a/avconv.c b/avconv.c
index 84860f6..608203c 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1850,6 +1850,8 @@ static int transcode_init(void)
                     ost->filter->filter->inputs[0]->sample_aspect_ratio;
                 enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format;
 
+                ost->st->avg_frame_rate = ost->frame_rate;
+
                 if (dec_ctx &&
                     (enc_ctx->width   != dec_ctx->width  ||
                      enc_ctx->height  != dec_ctx->height ||



More information about the ffmpeg-cvslog mailing list