[FFmpeg-cvslog] mpegts: use seek_back() for all seek backs

Michael Niedermayer git at videolan.org
Sun Jun 30 16:28:26 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 30 15:46:04 2013 +0200| [4e99660493110bf546bd6ab14a08755633400cf8] | committer: Michael Niedermayer

mpegts: use seek_back() for all seek backs

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e99660493110bf546bd6ab14a08755633400cf8
---

 libavformat/mpegts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index e2e734e..2048ad8 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2080,7 +2080,7 @@ static int mpegts_read_header(AVFormatContext *s)
                 st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr);
     }
 
-    avio_seek(pb, pos, SEEK_SET);
+    seek_back(s, pb, pos);
     return 0;
  fail:
     return -1;



More information about the ffmpeg-cvslog mailing list