Mercurial > libavcodec.hg
changeset 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 | 57a2076a2c40 |
children | e30999f7a631 |
files | motionpixels.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);