Browse code

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: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b88e80589bd11ef935a5e9dab53d4edb00de16e4)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

wm4 authored on 2015/01/09 10:13:36
Showing 1 changed files
... ...
@@ -77,6 +77,8 @@ static int parse(AVCodecParserContext *ctx,
77 77
                     idx += a; \
78 78
                     if (sz > size) { \
79 79
                         s->n_frames = 0; \
80
+                        *out_size = 0; \
81
+                        *out_data = data; \
80 82
                         av_log(avctx, AV_LOG_ERROR, \
81 83
                                "Superframe packet size too big: %u > %d\n", \
82 84
                                sz, size); \