# HG changeset patch # User michael # Date 1139756763 0 # Node ID 8e5de2f2eece7f2e46cd60a7162b725b1157bef4 # Parent 7d778342142f3c056b347e8cf6ae117a3787aa3e fix demuxing of Video006.3gp diff -r 7d778342142f -r 8e5de2f2eece mov.c --- 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;