[FFmpeg-devel] [PATCH] vp9_parse: don't use AVCodecParserContext as av_log context.

Ronald S. Bultje rsbultje at gmail.com
Sun Jan 5 19:32:03 CET 2014


Fixes trac ticket 3273.
---
 libavcodec/vp9_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
index 24f588f..c34febf 100644
--- a/libavcodec/vp9_parser.c
+++ b/libavcodec/vp9_parser.c
@@ -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; \
-- 
1.8.4



More information about the ffmpeg-devel mailing list