[SCM] libav/experimental: dont seek back if no sync to let eof happen

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:52:02 UTC 2013


The following commit has been merged in the experimental branch:
commit 4a775c19cdbe18e5a4b84d34e80a1e421dfd6268
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Tue Oct 10 12:58:34 2006 +0000

    dont seek back if no sync to let eof happen
    
    Originally committed as revision 6628 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index 38f7ec5..8a5d5a6 100644
--- a/libavformat/mxf.c
+++ b/libavformat/mxf.c
@@ -1030,7 +1030,6 @@ static int mxf_probe(AVProbeData *p) {
 static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags)
 {
     AVStream *st = s->streams[stream_index];
-    offset_t pos = url_ftell(&s->pb);
     int64_t seconds;
     int i;
 
@@ -1051,7 +1050,6 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
         av_update_cur_dts(s, st, sample_time);
         return 0;
     }
-    url_fseek(&s->pb, pos, SEEK_SET);
     return -1;
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list