[FFmpeg-cvslog] ffmpeg: copy tmcd track timebase parameters
Michael Niedermayer
git at videolan.org
Thu Jan 24 19:12:22 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 17 18:49:46 2013 +0100| [bee044d7c261a9e488ee14705814361694b9acdb] | committer: Michael Niedermayer
ffmpeg: copy tmcd track timebase parameters
Fixes part of Ticket2045
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bee044d7c261a9e488ee14705814361694b9acdb
---
ffmpeg.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index db25f64..6d53edf 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);
More information about the ffmpeg-cvslog
mailing list