mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 14:30:27 +00:00
avformat/ffmdec: Check ffio_set_buf_size() return value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d6039063aa
commit
dc55477a64
@ -98,7 +98,9 @@ static int ffm_read_data(AVFormatContext *s,
|
|||||||
retry_read:
|
retry_read:
|
||||||
if (pb->buffer_size != ffm->packet_size) {
|
if (pb->buffer_size != ffm->packet_size) {
|
||||||
int64_t tell = avio_tell(pb);
|
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);
|
avio_seek(pb, tell, SEEK_SET);
|
||||||
}
|
}
|
||||||
id = avio_rb16(pb); /* PACKET_ID */
|
id = avio_rb16(pb); /* PACKET_ID */
|
||||||
|
Loading…
Reference in New Issue
Block a user