mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-06 23:31:13 +00: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:
parent
3375a6a597
commit
b1d966a088
@ -180,8 +180,7 @@ static int faac_decode_frame(AVCodecContext *avctx,
|
|||||||
unsigned char channels;
|
unsigned char channels;
|
||||||
int r = s->faacDecInit(s->faac_handle, buf, buf_size, &srate, &channels);
|
int r = s->faacDecInit(s->faac_handle, buf, buf_size, &srate, &channels);
|
||||||
if(r < 0){
|
if(r < 0){
|
||||||
av_log(avctx, AV_LOG_ERROR, "faac: codec init failed: %s\n",
|
av_log(avctx, AV_LOG_ERROR, "faac: codec init failed.\n");
|
||||||
s->faacDecGetErrorMessage(frame_info.error));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
avctx->sample_rate = srate;
|
avctx->sample_rate = srate;
|
||||||
|
Loading…
Reference in New Issue
Block a user