Use correct context for av_log.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 30 Nov 2011 23:28:46 +0000 (00:28 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 30 Nov 2011 23:28:46 +0000 (00:28 +0100)
Fixes ticket #695.

libavcodec/pictordec.c

index 436b96d..b7d354b 100644 (file)
@@ -230,7 +230,7 @@ static int decode_frame(AVCodecContext *avctx,
             }
         }
     } else {
-        av_log_ask_for_sample(s, "uncompressed image\n");
+        av_log_ask_for_sample(avctx, "uncompressed image\n");
         return buf_size;
     }