summaryrefslogtreecommitdiff
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-06 00:33:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-06 00:34:09 +0100
commitd41b66a1a216956964077b383e6e234d518f17d7 (patch)
treea72c3a3563206b8327935c8117c7564e2fd56996 /libavcodec/vp3.c
parent3b4ffba3af968ae702e3a44f6b5f53445efc7363 (diff)
avcodec/vp3: pass correct context to av_log()
Fixes null pointer dereference Fixes: signal_sigsegv_000_3694_cov_1050071691_theora.mkv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 37d41b8e81..8a7c6b21e8 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -2277,7 +2277,7 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
if (av_image_check_size(visible_width, visible_height, 0, avctx) < 0 ||
visible_width + offset_x > s->width ||
visible_height + offset_y > s->height) {
- av_log(s, AV_LOG_ERROR,
+ av_log(avctx, AV_LOG_ERROR,
"Invalid frame dimensions - w:%d h:%d x:%d y:%d (%dx%d).\n",
visible_width, visible_height, offset_x, offset_y,
s->width, s->height);