提交 b851bc20 编写于 作者: M Michael Niedermayer

avformat/mp3dec: Check for avcodec_alloc_context3() failure

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 6ad42b3e
......@@ -63,6 +63,9 @@ static int mp3_read_probe(AVProbeData *p)
const uint8_t *buf, *buf0, *buf2, *end;
AVCodecContext *avctx = avcodec_alloc_context3(NULL);
if (!avctx)
return 0;
buf0 = p->buf;
end = p->buf + p->buf_size - sizeof(uint32_t);
while(buf0 < end && !*buf0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册