diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-29 23:13:35 +0000 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2011-10-07 16:25:31 +0200 |
commit | d337dd3a907110b32c6305bb65e4beca5b830c5d (patch) | |
tree | 4a44bb55afa6ce3f6913fb3dbd1928f24b4e0a8a /libavcodec/motionpixels.c | |
parent | d99427cb8ba099375d8cce6df808d4acf045ab43 (diff) | |
download | ffmpeg-d337dd3a907110b32c6305bb65e4beca5b830c5d.tar.gz |
motionpixels: Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/motionpixels.c')
-rw-r--r-- | libavcodec/motionpixels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c index 9589b4c386..70b499eabe 100644 --- a/libavcodec/motionpixels.c +++ b/libavcodec/motionpixels.c @@ -252,6 +252,7 @@ static int mp_decode_frame(AVCodecContext *avctx, 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); + memset(mp->bswapbuf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE); init_get_bits(&gb, mp->bswapbuf, buf_size * 8); memset(mp->changes_map, 0, avctx->width * avctx->height); |