git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ac9b3
)
eamad: clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of the temporary buffer
author
Laurent Aimar
<fenrir@videolan.org>
Sat, 8 Oct 2011 21:40:30 +0000
(23:40 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 9 Oct 2011 01:08:02 +0000
(
03:08
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/eamad.c
patch
|
blob
|
history
diff --git
a/libavcodec/eamad.c
b/libavcodec/eamad.c
index
74fb4c1
..
60de780
100644
(file)
--- 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++)