diff motionpixels.c @ 9583:26ccdc910898 libavcodec

Add missing return statement to out-of-memory condition. Fixes the warning: libavcodec/motionpixels.c:302: warning: statement with no effect
author diego
date Thu, 30 Apr 2009 10:21:22 +0000
parents 0dce4fe6e6f3
children 2e01212efb32
line wrap: on
line diff
--- a/motionpixels.c	Wed Apr 29 15:43:57 2009 +0000
+++ b/motionpixels.c	Thu Apr 30 10:21:22 2009 +0000
@@ -299,7 +299,7 @@
     /* 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);