You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/au: check return value of au_read_annotation()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
@@ -145,6 +145,7 @@ static int au_read_header(AVFormatContext *s)
|
||||
int bps, ba = 0;
|
||||
enum AVCodecID codec;
|
||||
AVStream *st;
|
||||
int ret;
|
||||
|
||||
tag = avio_rl32(pb);
|
||||
if (tag != MKTAG('.', 's', 'n', 'd'))
|
||||
@@ -163,7 +164,9 @@ static int au_read_header(AVFormatContext *s)
|
||||
|
||||
if (size > 24) {
|
||||
/* parse annotation field to get metadata */
|
||||
au_read_annotation(s, size - 24);
|
||||
ret = au_read_annotation(s, size - 24);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
codec = ff_codec_get_id(codec_au_tags, id);
|
||||
|
Reference in New Issue
Block a user