aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-05-11 18:00:48 +0200
committerAnton Khirnov <anton@khirnov.net>2014-05-18 10:24:36 +0200
commit93afb6c98df876b15e3d911a9450ad55f92080ce (patch)
tree22b712a38967b74159a2a8e3157e20bcf92b5b89 /avconv.c
parent7a5f4f6853047eea74a6443d73f4d74d52b2799f (diff)
downloadffmpeg-93afb6c98df876b15e3d911a9450ad55f92080ce.tar.gz
avconv: set output avg_frame_rate when known
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 84860f687b..608203c72d 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 ||