Commit a4f387bf authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mpegts: Warn if ffio_ensure_seekback() failed

Should silence CID1257005
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6be36ef3
...@@ -2454,7 +2454,8 @@ static int mpegts_read_header(AVFormatContext *s) ...@@ -2454,7 +2454,8 @@ static int mpegts_read_header(AVFormatContext *s)
int len; int len;
int64_t pos, probesize = s->probesize ? s->probesize : s->probesize2; int64_t pos, probesize = s->probesize ? s->probesize : s->probesize2;
ffio_ensure_seekback(pb, probesize); if (ffio_ensure_seekback(pb, probesize) < 0)
av_log(s, AV_LOG_WARNING, "Failed to allocate buffers for seekback\n");
/* 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);
......
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