[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.108,1.109
Michael Niedermayer CVS
michael
Sun Feb 12 16:06:05 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv7492
Modified Files:
mov.c
Log Message:
fix demuxing of Video006.3gp
Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- mov.c 12 Feb 2006 14:53:47 -0000 1.108
+++ mov.c 12 Feb 2006 15:06:03 -0000 1.109
@@ -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;
More information about the ffmpeg-cvslog
mailing list