Browse Source

avformat/ffmdec: Check ffio_set_buf_size() return value

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit dc55477a64)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4.11
Michael Niedermayer Michael Niedermayer 10 years ago
parent
commit
8fc8b3eebe
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/ffmdec.c

+ 3
- 1
libavformat/ffmdec.c View File

@@ -95,7 +95,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 */


Loading…
Cancel
Save