mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 15:23:11 +00:00
mpegts: use ffio_ensure_seekback()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
186ec17843
commit
8a8d9a7385
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user