[FFmpeg-cvslog] pictordec: use correct context for another av_log

Peter Ross git at videolan.org
Thu Dec 1 15:36:57 CET 2011


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Thu Dec  1 19:16:59 2011 +1100| [43a2a8b4a3d09ca22cb52796ec2c48a16c47cd8a] | committer: Michael Niedermayer

pictordec: use correct context for another av_log

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43a2a8b4a3d09ca22cb52796ec2c48a16c47cd8a
---

 libavcodec/pictordec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c
index b7d354b..09aae72 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;
     }
 



More information about the ffmpeg-cvslog mailing list