[FFmpeg-cvslog] r21209 - trunk/libavformat/mov.c
bcoudurier
subversion
Thu Jan 14 00:33:29 CET 2010
Author: bcoudurier
Date: Thu Jan 14 00:33:29 2010
New Revision: 21209
Log:
do not skip mdat data if it's the last atom, avoids one seek
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c Thu Jan 14 00:27:52 2010 (r21208)
+++ trunk/libavformat/mov.c Thu Jan 14 00:33:29 2010 (r21209)
@@ -228,8 +228,9 @@ static int mov_read_default(MOVContext *
int err = parse(c, pb, a);
if (err < 0)
return err;
- if (url_is_streamed(pb) && c->found_moov && c->found_mdat)
- break;
+ if (c->found_moov && c->found_mdat &&
+ (url_is_streamed(pb) || start_pos + a.size == url_fsize(pb)))
+ return 0;
left = a.size - url_ftell(pb) + start_pos;
if (left > 0) /* skip garbage at atom end */
url_fskip(pb, left);
More information about the ffmpeg-cvslog
mailing list