Commit 8a8d9a73 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegts: use ffio_ensure_seekback()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 186ec178
...@@ -2003,6 +2003,8 @@ static int mpegts_read_header(AVFormatContext *s) ...@@ -2003,6 +2003,8 @@ static int mpegts_read_header(AVFormatContext *s)
int len; int len;
int64_t pos; int64_t pos;
ffio_ensure_seekback(pb, s->probesize);
/* read the first 8192 bytes to get packet size */ /* read the first 8192 bytes to get packet size */
pos = avio_tell(pb); pos = avio_tell(pb);
len = avio_read(pb, buf, sizeof(buf)); len = avio_read(pb, buf, sizeof(buf));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment