aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-06 20:08:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-06 20:37:16 +0100
commita4f387bf56a6285d926b4b5a467a4114efbd19b1 (patch)
treee15c7c8f9a6bc0ed315a0340348c62a3767509a4 /libavformat/mpegts.c
parent6be36ef3c123845a34902245f9863e4067a2d9be (diff)
downloadffmpeg-a4f387bf56a6285d926b4b5a467a4114efbd19b1.tar.gz
avformat/mpegts: Warn if ffio_ensure_seekback() failed
Should silence CID1257005 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index f4250c84c6..74ae4fafe4 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2454,7 +2454,8 @@ static int mpegts_read_header(AVFormatContext *s)
int len;
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 */
pos = avio_tell(pb);