stalling and infinite loop.
Patch by Baptiste COUDURIER <baptiste coudurier at smartjog com>
Originally committed as revision 5110 to svn://svn.ffmpeg.org/ffmpeg/trunk
if(r < 0){
av_log(avctx, AV_LOG_ERROR, "faac: codec init failed: %s\n",
s->faacDecGetErrorMessage(frame_info.error));
- return 0;
+ return -1;
}
avctx->sample_rate = srate;
avctx->channels = channels;
if (frame_info.error > 0) {
av_log(avctx, AV_LOG_ERROR, "faac: frame decoding failed: %s\n",
s->faacDecGetErrorMessage(frame_info.error));
- return 0;
+ return -1;
}
frame_info.samples *= s->sample_size;