From 4a775c19cdbe18e5a4b84d34e80a1e421dfd6268 Mon Sep 17 00:00:00 2001
From: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date: Tue, 10 Oct 2006 12:58:34 +0000
Subject: [PATCH] dont seek back if no sync to let eof happen

Originally committed as revision 6628 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/mxf.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index 38f7ec5ecda..8a5d5a65ea0 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;
 }
 
-- 
GitLab