Mercurial > libavcodec.hg
comparison libfaad.c @ 6790:86ce080ea1e3 libavcodec
Do not use variable frame_info before its value is set.
author | cehoyos |
---|---|
date | Mon, 12 May 2008 06:51:30 +0000 |
parents | 48759bfbd073 |
children | 43bede126ef6 |
comparison
equal
deleted
inserted
replaced
6789:8107e891b226 | 6790:86ce080ea1e3 |
---|---|
178 if(!s->init){ | 178 if(!s->init){ |
179 unsigned long srate; | 179 unsigned long srate; |
180 unsigned char channels; | 180 unsigned char channels; |
181 int r = s->faacDecInit(s->faac_handle, buf, buf_size, &srate, &channels); | 181 int r = s->faacDecInit(s->faac_handle, buf, buf_size, &srate, &channels); |
182 if(r < 0){ | 182 if(r < 0){ |
183 av_log(avctx, AV_LOG_ERROR, "faac: codec init failed: %s\n", | 183 av_log(avctx, AV_LOG_ERROR, "faac: codec init failed.\n"); |
184 s->faacDecGetErrorMessage(frame_info.error)); | |
185 return -1; | 184 return -1; |
186 } | 185 } |
187 avctx->sample_rate = srate; | 186 avctx->sample_rate = srate; |
188 avctx->channels = channels; | 187 avctx->channels = channels; |
189 channel_setup(avctx); | 188 channel_setup(avctx); |