summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-15 15:45:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-15 15:51:31 +0200
commit01c17b5224ce0c9899a58f639ef6611fe626ef5f (patch)
treef8a9b4c2630a6798e3147c588ec42100f07ae8d6 /ffmpeg.c
parent7bf5084e30067dbf241a52688dad9756b06cc29f (diff)
ffmpeg: Fix copying timebase to muxer context
Fixes Ticket3741 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 0bdbe14506..1c1a5599d0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2880,7 +2880,7 @@ static int transcode_init(void)
ost->st->codec->codec= ost->enc_ctx->codec;
// copy timebase while removing common factors
- ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0});
+ ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0, 1});
}
/* init input streams */