From 43a2a8b4a3d09ca22cb52796ec2c48a16c47cd8a Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Thu, 1 Dec 2011 19:16:59 +1100 Subject: [PATCH] pictordec: use correct context for another av_log Signed-off-by: Michael Niedermayer --- libavcodec/pictordec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index b7d354b3d1..09aae720e4 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -126,7 +126,7 @@ static int decode_frame(AVCodecContext *avctx, s->nb_planes = (*buf++ >> 4) + 1; bpp = s->nb_planes ? bits_per_plane*s->nb_planes : bits_per_plane; if (bits_per_plane > 8 || bpp < 1 || bpp > 32) { - av_log_ask_for_sample(s, "unsupported bit depth\n"); + av_log_ask_for_sample(avctx, "unsupported bit depth\n"); return AVERROR_INVALIDDATA; }