[FFmpeg-devel] [PATCH 1/4] ffmpeg: copy tmcd track timebase parameters

Michael Niedermayer michaelni at gmx.at
Thu Jan 17 19:01:35 CET 2013


Fixes part of Ticket2045

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffmpeg.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index acaa523..75debe9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2100,6 +2100,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);
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list