aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/motionpixels.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-04-30 10:21:22 +0000
committerDiego Biurrun <diego@biurrun.de>2009-04-30 10:21:22 +0000
commitf0a75e66b94c671f62357bdadf64d857f92f8f42 (patch)
tree316ec6488eb87d40381cfbe4fb2099dc9b6a1253 /libavcodec/motionpixels.c
parent4c27207c12a5b07f54114885feb14d7ccf05a82d (diff)
downloadffmpeg-f0a75e66b94c671f62357bdadf64d857f92f8f42.tar.gz
Add missing return statement to out-of-memory condition. Fixes the warning:
libavcodec/motionpixels.c:302: warning: statement with no effect Originally committed as revision 18718 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/motionpixels.c')
-rw-r--r--libavcodec/motionpixels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c
index 6f9aac47df..227b178135 100644
--- a/libavcodec/motionpixels.c
+++ b/libavcodec/motionpixels.c
@@ -299,7 +299,7 @@ static int mp_decode_frame(AVCodecContext *avctx,
/* 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);