[FFmpeg-cvslog] r17905 - trunk/libavformat/utils.c

reimar subversion
Mon Mar 9 13:06:32 CET 2009


Author: reimar
Date: Mon Mar  9 13:06:31 2009
New Revision: 17905

Log:
100l, to start reading from the first frame we must seek to data_offset,
not 0 in av_seek_frame_generic.

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Mon Mar  9 12:35:59 2009	(r17904)
+++ trunk/libavformat/utils.c	Mon Mar  9 13:06:31 2009	(r17905)
@@ -1515,7 +1515,7 @@ static int av_seek_frame_generic(AVForma
                 return ret;
             av_update_cur_dts(s, st, ie->timestamp);
         }else{
-            if ((ret = url_fseek(s->pb, 0, SEEK_SET)) < 0)
+            if ((ret = url_fseek(s->pb, s->data_offset, SEEK_SET)) < 0)
                 return ret;
         }
         for(i=0;; i++) {




More information about the ffmpeg-cvslog mailing list