diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-10-08 23:40:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-04 01:00:23 +0100 |
commit | 1646d2d2ae20c32b075cf271c7b276a1d587ebe4 (patch) | |
tree | 24fe528d6679d19ec4188baa6e7ad1e632d72cd4 | |
parent | edc942202b577946c265fe9fdff236fac2b2cc2f (diff) | |
download | ffmpeg-1646d2d2ae20c32b075cf271c7b276a1d587ebe4.tar.gz |
eamad: clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 74b9c598396f76407c6b3841c10bc67ddddb2a98)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/eamad.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index d4881ab843..ee8158174a 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -280,6 +280,7 @@ static int decode_frame(AVCodecContext *avctx, if (!t->bitstream_buf) return AVERROR(ENOMEM); bswap16_buf(t->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2); + memset((uint8_t*)t->bitstream_buf + (buf_end-buf), 0, FF_INPUT_BUFFER_PADDING_SIZE); init_get_bits(&s->gb, t->bitstream_buf, 8*(buf_end-buf)); for (s->mb_y=0; s->mb_y < (avctx->height+15)/16; s->mb_y++) |