From 55775b099d91d41741ff169faa31ac671d08eb6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 12 Apr 2009 09:33:38 +0000 Subject: [PATCH] Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders Originally committed as revision 18467 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/eatqi.c | 2 +- libavcodec/mimic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index 3b6b8eb..acddec0 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -128,7 +128,7 @@ static int tqi_decode_frame(AVCodecContext *avctx, t->bitstream_buf = av_fast_realloc(t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); if (!t->bitstream_buf) - return -1; + return AVERROR(ENOMEM); s->dsp.bswap_buf((uint32_t*)t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4); init_get_bits(&s->gb, t->bitstream_buf, 8*(buf_end-buf)); diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index da5bba3..3b40fdf 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -337,7 +337,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data, ctx->swap_buf = av_fast_realloc(ctx->swap_buf, &ctx->swap_buf_size, swap_buf_size + FF_INPUT_BUFFER_PADDING_SIZE); if(!ctx->swap_buf) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); ctx->dsp.bswap_buf((uint32_t*)ctx->swap_buf, (const uint32_t*) buf, -- 2.7.4