From b1d966a088dc7560fab92d0dfda5999b8db4eb2c Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 12 May 2008 06:51:30 +0000 Subject: [PATCH] Do not use variable frame_info before its value is set. Originally committed as revision 13133 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libfaad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/libfaad.c b/libavcodec/libfaad.c index 842231347a..1e1bf68eb7 100644 --- a/libavcodec/libfaad.c +++ b/libavcodec/libfaad.c @@ -180,8 +180,7 @@ static int faac_decode_frame(AVCodecContext *avctx, unsigned char channels; int r = s->faacDecInit(s->faac_handle, buf, buf_size, &srate, &channels); if(r < 0){ - av_log(avctx, AV_LOG_ERROR, "faac: codec init failed: %s\n", - s->faacDecGetErrorMessage(frame_info.error)); + av_log(avctx, AV_LOG_ERROR, "faac: codec init failed.\n"); return -1; } avctx->sample_rate = srate;