mpegts: use ffio_ensure_seekback()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2013 16:18:48 +0000 (18:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Jul 2013 17:13:39 +0000 (19:13 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c

index 2048ad868afeb993f939f62c7b654e378cba3089..99f9a72d1d80a4d4d943e1c187f39bdc0d44ec42 100644 (file)
@@ -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));