projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3483d87
)
Reduce codec time base when stream copying
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 3 Jul 2010 10:12:22 +0000
(10:12 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 3 Jul 2010 10:12:22 +0000
(10:12 +0000)
Originally committed as revision 24019 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index a286b0bb11263f8c02e74e8e7ae07f73aae4a4f3..e5d8b260a91e25ad52c98fe47d6a0066ce0eb34d 100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-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){
codec->time_base = icodec->time_base;
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
codec->time_base = ist->st->time_base;
switch(codec->codec_type) {