changeset 9413:1eafaea58613 libavcodec

Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders
author reimar
date Sun, 12 Apr 2009 09:33:38 +0000
parents a61f0c7f40a8
children 5a738e8f9524
files eatqi.c mimic.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/eatqi.c	Sun Apr 12 09:06:17 2009 +0000
+++ b/eatqi.c	Sun Apr 12 09:33:38 2009 +0000
@@ -128,7 +128,7 @@
 
     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));
 
--- a/mimic.c	Sun Apr 12 09:06:17 2009 +0000
+++ b/mimic.c	Sun Apr 12 09:33:38 2009 +0000
@@ -337,7 +337,7 @@
     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,