[FFmpeg-cvslog] atrac1: give a valid context pointer to av_log().

Laurent Aimar git at videolan.org
Sun Oct 9 03:31:26 CEST 2011


ffmpeg | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Oct  8 23:40:26 2011 +0200| [31ac9b30aee0e67dba35e119252fd3640c234193] | committer: Michael Niedermayer

atrac1: give a valid context pointer to av_log().

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

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

 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;
     }
 



More information about the ffmpeg-cvslog mailing list