summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@smartjog.com>2006-03-06 22:15:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-03-06 22:15:43 +0000
commit6e2695947d69dde82b16d289d1f0dbd812b316e4 (patch)
tree957fff9a8453beb4b6ff5efca11260de350e2a31 /libavformat
parent5f112e1f967d66ed33cea954e4573478f6598725 (diff)
set track timescale to mov timescale if 0 patch by (Baptiste COUDURIER <baptiste.coudurier smartjog com)
Originally committed as revision 5121 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3cb727c803..7e5473d1ac 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1635,6 +1635,8 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
if(!sc->time_rate)
sc->time_rate=1;
+ if(!sc->time_scale)
+ sc->time_scale= mov->time_scale;
av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
if(s->streams[i]->duration != AV_NOPTS_VALUE){