atrac1: use correct context for av_log()
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 2 Nov 2011 16:06:04 +0000 (12:06 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 10 Nov 2011 15:25:47 +0000 (10:25 -0500)
libavcodec/atrac1.c

index ef5156c..770b1bf 100644 (file)
@@ -284,7 +284,7 @@ static int atrac1_decode_frame(AVCodecContext *avctx, void *data,
 
 
     if (buf_size < 212 * q->channels) {
-        av_log(q,AV_LOG_ERROR,"Not enough data to decode!\n");
+        av_log(avctx, AV_LOG_ERROR, "Not enough data to decode!\n");
         return AVERROR_INVALIDDATA;
     }