Revision 2874c81c libavformat/flacdec.c

View differences:

libavformat/flacdec.c
67 67
        case FLAC_METADATA_TYPE_VORBIS_COMMENT:
68 68
            buffer = av_mallocz(metadata_size + FF_INPUT_BUFFER_PADDING_SIZE);
69 69
            if (!buffer) {
70
                return AVERROR_NOMEM;
70
                return AVERROR(ENOMEM);
71 71
            }
72 72
            if (get_buffer(s->pb, buffer, metadata_size) != metadata_size) {
73 73
                av_freep(&buffer);

Also available in: Unified diff