aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-17 18:49:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-24 18:37:32 +0100
commitbee044d7c261a9e488ee14705814361694b9acdb (patch)
treeded9c98d282a8c505de70f2390f7abf64882cd96 /ffmpeg.c
parentb75ac7c71cc89bd162b330ab95f5009ab6af46d8 (diff)
downloadffmpeg-bee044d7c261a9e488ee14705814361694b9acdb.tar.gz
ffmpeg: copy tmcd track timebase parameters
Fixes part of Ticket2045 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index db25f64c1b..6d53edfa64 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2139,6 +2139,12 @@ static int transcode_init(void)
codec->time_base.num *= icodec->ticks_per_frame;
}
}
+ if ( codec->codec_tag == AV_RL32("tmcd")
+ && icodec->time_base.num < icodec->time_base.den
+ && icodec->time_base.num > 0
+ && 121LL*icodec->time_base.num > icodec->time_base.den) {
+ codec->time_base = icodec->time_base;
+ }
if(ost->frame_rate.num)
codec->time_base = av_inv_q(ost->frame_rate);