summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-09 21:48:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-09 21:51:31 +0200
commit9098f0ecd7bfa8e971ab92bd0c244cb003ef43b2 (patch)
tree0ef3931aa9fe4a93691a338630a8ad712d4896c0 /ffmpeg.c
parent8e7c8325d202d7cd59cfab4172760a3a5c3799ed (diff)
downloadffmpeg-streaming-9098f0ecd7bfa8e971ab92bd0c244cb003ef43b2.zip
ffmpeg-streaming-9098f0ecd7bfa8e971ab92bd0c244cb003ef43b2.tar.gz
ffmpeg: remove common factors from copied timebase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 28ed351..15f2c24 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2879,7 +2879,8 @@ static int transcode_init(void)
}
ost->st->codec->codec= ost->enc_ctx->codec;
- ost->st->time_base = ost->enc_ctx->time_base;
+ // copy timebase while removing common factors
+ ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0});
}
/* init input streams */
OpenPOWER on IntegriCloud