diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2006-02-13 12:05:06 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2006-02-13 12:05:06 +0000 |
commit | aa11db2f2369e29cedc0399df181461157340932 (patch) | |
tree | 47b23554978b13c6c94514bf47ef32531d9e7f65 /libavformat | |
parent | 8170e5fb4988ddbb4aec8f2e50974dcff0f1158c (diff) | |
download | ffmpeg-aa11db2f2369e29cedc0399df181461157340932.tar.gz |
10l, allocate bitbuffer with regard to the padding size
Originally committed as revision 5014 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c index 6598dea314..5d3dc4d828 100644 --- a/libavformat/tta.c +++ b/libavformat/tta.c @@ -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); |