Revision 2874c81c libavformat/rmdec.c

View differences:

libavformat/rmdec.c
106 106
        return -1;
107 107
    avctx->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
108 108
    if (!avctx->extradata)
109
        return AVERROR_NOMEM;
109
        return AVERROR(ENOMEM);
110 110
    avctx->extradata_size = get_buffer(pb, avctx->extradata, size);
111 111
    memset(avctx->extradata + avctx->extradata_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
112 112
    if (avctx->extradata_size != size)

Also available in: Unified diff