Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-07 15:55:10 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-07 15:55:10 +0300
commitdc55477a64cefebf8dcc611f026be71382814ae2 (patch)
treee50b88fec216d6bcb4a10b90f5a755a560e11917 /libavformat/ffmdec.c
parentd6039063aabac3ab11ea65ae14549b15e6170bc2 (diff)
avformat/ffmdec: Check ffio_set_buf_size() return value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 7c0f4510dc..9b50c9f5a6 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -98,7 +98,9 @@ static int ffm_read_data(AVFormatContext *s,
retry_read:
if (pb->buffer_size != ffm->packet_size) {
int64_t tell = avio_tell(pb);
- ffio_set_buf_size(pb, ffm->packet_size);
+ int ret = ffio_set_buf_size(pb, ffm->packet_size);
+ if (ret < 0)
+ return ret;
avio_seek(pb, tell, SEEK_SET);
}
id = avio_rb16(pb); /* PACKET_ID */