mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
10l, allocate bitbuffer with regard to the padding size
Originally committed as revision 5014 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8170e5fb49
commit
aa11db2f23
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user