[FFmpeg-devel] [PATCH 3/3] mpegts: use ffio_ensure_seekback()

Michael Niedermayer michaelni at gmx.at
Sun Jun 30 18:30:31 CEST 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 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));
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list