summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-18 14:30:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-18 14:38:36 +0200
commit8334850a9985dde0e11227902fb007b382aa97e6 (patch)
tree1d3e645a286dc2bc3280146c1751b7a6ec768f74 /ffmpeg.c
parent8636b11bdc6ecd7c486d3463a7dcb22b0c0a9ba7 (diff)
parent93afb6c98df876b15e3d911a9450ad55f92080ce (diff)
Merge commit '93afb6c98df876b15e3d911a9450ad55f92080ce'
* commit '93afb6c98df876b15e3d911a9450ad55f92080ce': avconv: set output avg_frame_rate when known Conflicts: ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 10311ef495..f3e1a7589f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2673,6 +2673,8 @@ static int transcode_init(void)
av_get_pix_fmt_name(ost->filter->filter->inputs[0]->format));
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 ||