Commit b88e8058 authored by wm4's avatar wm4 Committed by Michael Niedermayer

vp9: fix parser return values in error case

The parser must always set the out_size and out_data pointers. The API
seems to require it, and the common code in parser.c also relies on it.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d1c6b7b2
...@@ -77,6 +77,8 @@ static int parse(AVCodecParserContext *ctx, ...@@ -77,6 +77,8 @@ static int parse(AVCodecParserContext *ctx,
idx += a; \ idx += a; \
if (sz > size) { \ if (sz > size) { \
s->n_frames = 0; \ s->n_frames = 0; \
*out_size = 0; \
*out_data = data; \
av_log(avctx, AV_LOG_ERROR, \ av_log(avctx, AV_LOG_ERROR, \
"Superframe packet size too big: %u > %d\n", \ "Superframe packet size too big: %u > %d\n", \
sz, size); \ sz, 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