diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-30 00:05:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-30 02:09:59 +0200 |
commit | e60619f9b4bdaf9af46887cdb2c86454567b4a61 (patch) | |
tree | 148e4a6bcb19094ce7074aea23090a874fedc8fe /libavcodec/motionpixels.c | |
parent | 3035c4034b6af3ad47f921e3385196e1b9d44ddf (diff) | |
download | ffmpeg-e60619f9b4bdaf9af46887cdb2c86454567b4a61.tar.gz |
Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer used in motion pixels decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 165a3d1667..01d3c20658 100644 --- a/libavcodec/motionpixels.c +++ b/libavcodec/motionpixels.c @@ -253,6 +253,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); |