Commit c708220b authored by diego's avatar diego

Add missing return statement to out-of-memory condition. Fixes the warning:

libavcodec/motionpixels.c:302: warning: statement with no effect


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18718 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d2539df5
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment