Revision 2874c81c libavcodec/ac3dec.c

View differences:

libavcodec/ac3dec.c
216 216
    if (avctx->error_recognition >= FF_ER_CAREFUL) {
217 217
        s->input_buffer = av_mallocz(AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
218 218
        if (!s->input_buffer)
219
            return AVERROR_NOMEM;
219
            return AVERROR(ENOMEM);
220 220
    }
221 221

  
222 222
    avctx->sample_fmt = SAMPLE_FMT_S16;

Also available in: Unified diff