avconv: set output avg_frame_rate when known
authorAnton Khirnov <anton@khirnov.net>
Sun, 11 May 2014 16:00:48 +0000 (18:00 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 18 May 2014 08:24:36 +0000 (10:24 +0200)
avconv.c

index 84860f6..608203c 100644 (file)
--- 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 ||