Mercurial > libavformat.hg
changeset 957:99a7f76a8954 libavformat
10l, allocate bitbuffer with regard to the padding size
author | alex |
---|---|
date | Mon, 13 Feb 2006 12:05:06 +0000 |
parents | 18bb4485996c |
children | 99cb6d06856b |
files | tta.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tta.c Mon Feb 13 10:40:41 2006 +0000 +++ b/tta.c Mon Feb 13 12:05:06 2006 +0000 @@ -76,7 +76,7 @@ st->codec->bits_per_sample = bps; st->codec->extradata_size = url_ftell(&s->pb) - start; - st->codec->extradata = av_mallocz(st->codec->extradata_size); + st->codec->extradata = av_mallocz(st->codec->extradata_size+FF_INPUT_BUFFER_PADDING_SIZE); url_fseek(&s->pb, start, SEEK_SET); // or SEEK_CUR and -size ? :) get_buffer(&s->pb, st->codec->extradata, st->codec->extradata_size);