Browse Source

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
tags/v0.5
Baptiste Coudurier Michael Niedermayer 19 years ago
parent
commit
6e2695947d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/mov.c

+ 2
- 0
libavformat/mov.c View File

@@ -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){


Loading…
Cancel
Save