[SCM] libav/experimental: 100l, to start reading from the first frame we must seek to data_offset, not 0 in av_seek_frame_generic.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:41:00 UTC 2013


The following commit has been merged in the experimental branch:
commit 3a4f91f5ed62fe76578b0d321dd844df7e0c09c8
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Mon Mar 9 12:06:31 2009 +0000

    100l, to start reading from the first frame we must seek to data_offset,
    not 0 in av_seek_frame_generic.
    
    Originally committed as revision 17905 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/utils.c b/libavformat/utils.c
index baf89c9..43de101 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1515,7 +1515,7 @@ static int av_seek_frame_generic(AVFormatContext *s,
                 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++) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list