Commit 189fbced authored by Michael Niedermayer's avatar Michael Niedermayer

tak_parser: check ff_combine_frame() return code

Fixes CID733706
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6078bd80
......@@ -66,7 +66,8 @@ static int tak_parse(AVCodecParserContext *s, AVCodecContext *avctx,
int tmp_buf_size = FFMIN(2 * TAK_MAX_FRAME_HEADER_BYTES, buf_size);
const uint8_t *tmp_buf = buf;
ff_combine_frame(pc, END_NOT_FOUND, &tmp_buf, &tmp_buf_size);
if (ff_combine_frame(pc, END_NOT_FOUND, &tmp_buf, &tmp_buf_size) != -1)
return AVERROR(ENOMEM);
consumed += tmp_buf_size;
buf += tmp_buf_size;
buf_size -= tmp_buf_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment