Commit 43a2a8b4 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

pictordec: use correct context for another av_log

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 67eb95ce
...@@ -126,7 +126,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -126,7 +126,7 @@ static int decode_frame(AVCodecContext *avctx,
s->nb_planes = (*buf++ >> 4) + 1; s->nb_planes = (*buf++ >> 4) + 1;
bpp = s->nb_planes ? bits_per_plane*s->nb_planes : bits_per_plane; bpp = s->nb_planes ? bits_per_plane*s->nb_planes : bits_per_plane;
if (bits_per_plane > 8 || bpp < 1 || bpp > 32) { 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; return AVERROR_INVALIDDATA;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment