diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-02-12 15:06:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-02-12 15:06:03 +0000 |
commit | 75b5b631792e19985cec89528a19a48d2162e28c (patch) | |
tree | 9f81979bf090596241c873589295d36cdc5aac48 | |
parent | 232d8a1fbae223296b6e98ceaf874e1658c33433 (diff) | |
download | ffmpeg-75b5b631792e19985cec89528a19a48d2162e28c.tar.gz |
fix demuxing of Video006.3gp
Originally committed as revision 5006 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 27fcd17614..fa65100851 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1722,8 +1722,10 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) sc->time_rate=1; av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale); - assert(s->streams[i]->duration % sc->time_rate == 0); - s->streams[i]->duration /= sc->time_rate; + if(s->streams[i]->duration != AV_NOPTS_VALUE){ + assert(s->streams[i]->duration % sc->time_rate == 0); + s->streams[i]->duration /= sc->time_rate; + } sc->ffindex = i; sc->is_ff_stream = 1; |