mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
avformat/oggdec: Check ffio_ensure_seekback()
Fixes Coverity issue #1492327. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f883746587
commit
b47116be45
@ -364,7 +364,9 @@ static int ogg_read_page(AVFormatContext *s, int *sid, int probing)
|
|||||||
ffio_init_checksum(bc, ff_crc04C11DB7_update, 0x4fa9b05f);
|
ffio_init_checksum(bc, ff_crc04C11DB7_update, 0x4fa9b05f);
|
||||||
|
|
||||||
/* To rewind if checksum is bad/check magic on switches - this is the max packet size */
|
/* To rewind if checksum is bad/check magic on switches - this is the max packet size */
|
||||||
ffio_ensure_seekback(bc, MAX_PAGE_SIZE);
|
ret = ffio_ensure_seekback(bc, MAX_PAGE_SIZE);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
start_pos = avio_tell(bc);
|
start_pos = avio_tell(bc);
|
||||||
|
|
||||||
version = avio_r8(bc);
|
version = avio_r8(bc);
|
||||||
|
Loading…
Reference in New Issue
Block a user