comparison ac3dec.c @ 11581:998691d7f8f5 libavcodec

Replace all remaining occurrences of AVERROR_NOMEM with AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump.
author stefano
date Sat, 03 Apr 2010 14:15:00 +0000
parents 8a4984c5cacc
children e6bff5319932
comparison
equal deleted inserted replaced
11580:baf1f1555e92 11581:998691d7f8f5
214 214
215 /* allocate context input buffer */ 215 /* allocate context input buffer */
216 if (avctx->error_recognition >= FF_ER_CAREFUL) { 216 if (avctx->error_recognition >= FF_ER_CAREFUL) {
217 s->input_buffer = av_mallocz(AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE); 217 s->input_buffer = av_mallocz(AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
218 if (!s->input_buffer) 218 if (!s->input_buffer)
219 return AVERROR_NOMEM; 219 return AVERROR(ENOMEM);
220 } 220 }
221 221
222 avctx->sample_fmt = SAMPLE_FMT_S16; 222 avctx->sample_fmt = SAMPLE_FMT_S16;
223 return 0; 223 return 0;
224 } 224 }