[FFmpeg-devel] [PATCH 01/16] atrac1: give a valid context pointer to av_log().

fenrir at elivagar.org fenrir at elivagar.org
Sat Oct 8 23:40:26 CEST 2011


From: Laurent Aimar <fenrir at videolan.org>

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

diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c
index 1f4c36c..2ad99bf 100644
--- a/libavcodec/atrac1.c
+++ b/libavcodec/atrac1.c
@@ -282,7 +282,7 @@ static int atrac1_decode_frame(AVCodecContext *avctx, void *data,
 
 
     if (buf_size < 212 * q->channels) {
-        av_log(q,AV_LOG_ERROR,"Not enought data to decode!\n");
+        av_log(avctx, AV_LOG_ERROR,"Not enought data to decode!\n");
         return -1;
     }
 
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list