Commit dc55477a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/ffmdec: Check ffio_set_buf_size() return value

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d6039063
......@@ -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 */
......
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