Skip to content
Snippets Groups Projects
Commit 8abcbf2d authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

Reduce codec time base when stream copying

Originally committed as revision 24019 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3483d877
No related branches found
No related tags found
No related merge requests found
...@@ -2173,6 +2173,8 @@ static int av_transcode(AVFormatContext **output_files, ...@@ -2173,6 +2173,8 @@ static int av_transcode(AVFormatContext **output_files,
if(av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000){ if(av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000){
codec->time_base = icodec->time_base; codec->time_base = icodec->time_base;
codec->time_base.num *= icodec->ticks_per_frame; codec->time_base.num *= icodec->ticks_per_frame;
av_reduce(&codec->time_base.num, &codec->time_base.den,
codec->time_base.num, codec->time_base.den, INT_MAX);
}else }else
codec->time_base = ist->st->time_base; codec->time_base = ist->st->time_base;
switch(codec->codec_type) { switch(codec->codec_type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment