Browse Source

eatqi: use av_fast_padded_malloc()

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
tags/n0.11
Reimar Döffinger Justin Ruggles 13 years ago
parent
commit
2f4b9021a1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/eatqi.c

+ 2
- 1
libavcodec/eatqi.c View File

@@ -124,7 +124,8 @@ static int tqi_decode_frame(AVCodecContext *avctx,
return -1;
}

av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);
av_fast_padded_malloc(&t->bitstream_buf, &t->bitstream_buf_size,
buf_end - buf);
if (!t->bitstream_buf)
return AVERROR(ENOMEM);
s->dsp.bswap_buf(t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4);


Loading…
Cancel
Save