[FFmpeg-cvslog] mpegts: use ffio_ensure_seekback()

Michael Niedermayer git at videolan.org
Thu Jul 4 19:23:03 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 30 18:18:48 2013 +0200| [8a8d9a738599d93710c30e2f33c93f2bd34b0660] | committer: Michael Niedermayer

mpegts: use ffio_ensure_seekback()

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

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

 libavformat/mpegts.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 2048ad8..99f9a72 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2003,6 +2003,8 @@ static int mpegts_read_header(AVFormatContext *s)
     int len;
     int64_t pos;
 
+    ffio_ensure_seekback(pb, s->probesize);
+
     /* read the first 8192 bytes to get packet size */
     pos = avio_tell(pb);
     len = avio_read(pb, buf, sizeof(buf));



More information about the ffmpeg-cvslog mailing list