1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-07 00:20:09 +02:00

Do not use variable frame_info before its value is set.

Originally committed as revision 13133 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Carl Eugen Hoyos 2008-05-12 06:51:30 +00:00
parent 3375a6a597
commit b1d966a088

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