Commit 96e87b05 authored by michael's avatar michael

set track timescale to mov timescale if 0 patch by (Baptiste COUDURIER...

set track timescale to mov timescale if 0 patch by (Baptiste COUDURIER <baptiste.coudurier smartjog com)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5121 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3e3bd77b
......@@ -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){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment