提交 64059f50 编写于 作者: L Limin Wang

avformat/au: check return value of au_read_annotation()

Signed-off-by: NLimin Wang <lance.lmwang@gmail.com>
上级 a7aa903b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册