[FFmpeg-cvslog] r18718 - trunk/libavcodec/motionpixels.c

diego subversion
Thu Apr 30 12:21:23 CEST 2009


Author: diego
Date: Thu Apr 30 12:21:22 2009
New Revision: 18718

Log:
Add missing return statement to out-of-memory condition. Fixes the warning:
libavcodec/motionpixels.c:302: warning: statement with no effect

Modified:
   trunk/libavcodec/motionpixels.c

Modified: trunk/libavcodec/motionpixels.c
==============================================================================
--- trunk/libavcodec/motionpixels.c	Wed Apr 29 18:14:33 2009	(r18717)
+++ trunk/libavcodec/motionpixels.c	Thu Apr 30 12:21:22 2009	(r18718)
@@ -299,7 +299,7 @@ static int mp_decode_frame(AVCodecContex
     /* le32 bitstream msb first */
     av_fast_malloc(&mp->bswapbuf, &mp->bswapbuf_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
     if (!mp->bswapbuf)
-        AVERROR(ENOMEM);
+        return AVERROR(ENOMEM);
     mp->dsp.bswap_buf((uint32_t *)mp->bswapbuf, (const uint32_t *)buf, buf_size / 4);
     if (buf_size & 3)
         memcpy(mp->bswapbuf + (buf_size & ~3), buf + (buf_size & ~3), buf_size & 3);



More information about the ffmpeg-cvslog mailing list