# HG changeset patch # User alex # Date 1139832306 0 # Node ID 99a7f76a8954fc758b3f5e3d103ada90c761561f # Parent 18bb4485996cf6d2ccf42995cf6aa7be209e63be 10l, allocate bitbuffer with regard to the padding size diff -r 18bb4485996c -r 99a7f76a8954 tta.c --- 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);