diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-30 18:18:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-04 19:13:39 +0200 |
commit | 8a8d9a738599d93710c30e2f33c93f2bd34b0660 (patch) | |
tree | dac3f0a7f54bd6716dae27d7d882d4b78c1b492c | |
parent | 186ec1784336df11df48e646595e2ec646f82329 (diff) | |
download | ffmpeg-8a8d9a738599d93710c30e2f33c93f2bd34b0660.tar.gz |
mpegts: use ffio_ensure_seekback()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |