From 8a8d9a738599d93710c30e2f33c93f2bd34b0660 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 30 Jun 2013 18:18:48 +0200 Subject: mpegts: use ffio_ensure_seekback() Signed-off-by: Michael Niedermayer --- libavformat/mpegts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 2048ad868a..99f9a72d1d 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)); -- cgit v1.2.3