Revision 2874c81c libavcodec/eatgv.c

View differences:

libavcodec/eatgv.c
288 288
        /* allocate additional 12 bytes to accomodate av_memcpy_backptr() OUTBUF_PADDED optimisation */
289 289
        s->frame.data[0] = av_malloc(s->width*s->height + 12);
290 290
        if (!s->frame.data[0])
291
            return AVERROR_NOMEM;
291
            return AVERROR(ENOMEM);
292 292
        s->frame.data[1] = av_malloc(AVPALETTE_SIZE);
293 293
        if (!s->frame.data[1]) {
294 294
            av_freep(&s->frame.data[0]);
295
            return AVERROR_NOMEM;
295
            return AVERROR(ENOMEM);
296 296
        }
297 297
    }
298 298
    memcpy(s->frame.data[1], s->palette, AVPALETTE_SIZE);

Also available in: Unified diff