vp9_parse: don't use AVCodecParserContext as av_log context.
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 5 Jan 2014 18:32:03 +0000 (13:32 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Jan 2014 20:45:24 +0000 (21:45 +0100)
Fixes trac ticket 3273.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp9_parser.c

index 24f588f..c34febf 100644 (file)
@@ -77,7 +77,7 @@ static int parse(AVCodecParserContext *ctx,
                     idx += a; \
                     if (sz > size) { \
                         s->n_frames = 0; \
-                        av_log(ctx, AV_LOG_ERROR, \
+                        av_log(avctx, AV_LOG_ERROR, \
                                "Superframe packet size too big: %d > %d\n", \
                                sz, size); \
                         return AVERROR_INVALIDDATA; \