forked from FFmpeg/FFmpeg
fix demuxing of Video006.3gp
Originally committed as revision 5006 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
232d8a1fba
commit
75b5b63179
1 changed files with 4 additions and 2 deletions
|
@ -1722,8 +1722,10 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||||
sc->time_rate=1;
|
sc->time_rate=1;
|
||||||
av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
|
av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
|
||||||
|
|
||||||
assert(s->streams[i]->duration % sc->time_rate == 0);
|
if(s->streams[i]->duration != AV_NOPTS_VALUE){
|
||||||
s->streams[i]->duration /= sc->time_rate;
|
assert(s->streams[i]->duration % sc->time_rate == 0);
|
||||||
|
s->streams[i]->duration /= sc->time_rate;
|
||||||
|
}
|
||||||
|
|
||||||
sc->ffindex = i;
|
sc->ffindex = i;
|
||||||
sc->is_ff_stream = 1;
|
sc->is_ff_stream = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue