diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-05 17:33:12 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-05 17:33:12 +0100 |
commit | 835fd779a46d14d6999618546a9833b3f2af2326 (patch) | |
tree | 5dc4b149f00fb880708bb2267fe004356a555072 /libavcodec | |
parent | fc1152de410323cf41dedd0bf301a6a265b0850f (diff) | |
parent | da025d115a1ada58081cd869e85b81a1c183ae9e (diff) | |
download | ffmpeg-835fd779a46d14d6999618546a9833b3f2af2326.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
fate: workaround for slighly broken 'test' shell builtin
mimic: initialize padding of swap_buf through av_fast_padded_malloc
eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()
raw demuxer: initialize end of partial packets
Conflicts:
tests/fate-run.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/eamad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index 7012c4ef12..2f9559fe8e 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -276,7 +276,8 @@ static int decode_frame(AVCodecContext *avctx, } } - av_fast_malloc(&s->bitstream_buf, &s->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); + av_fast_padded_malloc(&s->bitstream_buf, &s->bitstream_buf_size, + buf_end - buf); if (!s->bitstream_buf) return AVERROR(ENOMEM); s->dsp.bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2); |