changeset 4684:755858ca9f6a libavformat

100l, to start reading from the first frame we must seek to data_offset, not 0 in av_seek_frame_generic.
author reimar
date Mon, 09 Mar 2009 12:06:31 +0000
parents d12f0e989bd5
children 98242eba0332
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Mon Mar 09 11:35:59 2009 +0000
+++ b/utils.c	Mon Mar 09 12:06:31 2009 +0000
@@ -1515,7 +1515,7 @@
                 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++) {