Mercurial > libavformat.hg
changeset 955:8e5de2f2eece libavformat
fix demuxing of Video006.3gp
author | michael |
---|---|
date | Sun, 12 Feb 2006 15:06:03 +0000 |
parents | 7d778342142f |
children | 18bb4485996c |
files | mov.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Sun Feb 12 14:53:47 2006 +0000 +++ b/mov.c Sun Feb 12 15:06:03 2006 +0000 @@ -1722,8 +1722,10 @@ 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;