OSDN Git Service

Do not use variable frame_info before its value is set.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 12 May 2008 06:51:30 +0000 (06:51 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 12 May 2008 06:51:30 +0000 (06:51 +0000)
Originally committed as revision 13133 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libfaad.c

index 8422313..1e1bf68 100644 (file)
@@ -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;