mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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
This commit is contained in:
parent
4c27207c12
commit
f0a75e66b9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user