mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
ffmpeg: copy tmcd track timebase parameters
Fixes part of Ticket2045 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b75ac7c71c
commit
bee044d7c2
6
ffmpeg.c
6
ffmpeg.c
@ -2139,6 +2139,12 @@ static int transcode_init(void)
|
|||||||
codec->time_base.num *= icodec->ticks_per_frame;
|
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)
|
if(ost->frame_rate.num)
|
||||||
codec->time_base = av_inv_q(ost->frame_rate);
|
codec->time_base = av_inv_q(ost->frame_rate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user