[FFmpeg-cvslog] r18467 - in trunk/libavcodec: eatqi.c mimic.c

reimar subversion
Sun Apr 12 11:33:38 CEST 2009


Author: reimar
Date: Sun Apr 12 11:33:38 2009
New Revision: 18467

Log:
Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders

Modified:
   trunk/libavcodec/eatqi.c
   trunk/libavcodec/mimic.c

Modified: trunk/libavcodec/eatqi.c
==============================================================================
--- trunk/libavcodec/eatqi.c	Sun Apr 12 11:06:17 2009	(r18466)
+++ trunk/libavcodec/eatqi.c	Sun Apr 12 11:33:38 2009	(r18467)
@@ -128,7 +128,7 @@ static int tqi_decode_frame(AVCodecConte
 
     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));
 

Modified: trunk/libavcodec/mimic.c
==============================================================================
--- trunk/libavcodec/mimic.c	Sun Apr 12 11:06:17 2009	(r18466)
+++ trunk/libavcodec/mimic.c	Sun Apr 12 11:33:38 2009	(r18467)
@@ -337,7 +337,7 @@ static int mimic_decode_frame(AVCodecCon
     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,



More information about the ffmpeg-cvslog mailing list