Commit 9695fb26 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

vp9_parser: handle zero-sized packets.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0e15a344
......@@ -45,6 +45,13 @@ static int parse(AVCodecParserContext *ctx,
VP9ParseContext *s = ctx->priv_data;
int marker;
if (size <= 0) {
*out_size = 0;
*out_data = data;
return 0;
}
if (s->n_frames > 0) {
*out_data = data;
*out_size = s->size[--s->n_frames];
......
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