Commit 79fc7e44 authored by alex's avatar alex

10l, allocate bitbuffer with regard to the padding size


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5014 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 107b0f59
......@@ -76,7 +76,7 @@ static int tta_read_header(AVFormatContext *s, AVFormatParameters *ap)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment