[SCM] libav/experimental: 10l, allocate bitbuffer with regard to the padding size

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:46:32 UTC 2013


The following commit has been merged in the experimental branch:
commit aa11db2f2369e29cedc0399df181461157340932
Author: Alex Beregszaszi <alex at rtfs.hu>
Date:   Mon Feb 13 12:05:06 2006 +0000

    10l, allocate bitbuffer with regard to the padding size
    
    Originally committed as revision 5014 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/tta.c b/libavformat/tta.c
index 6598dea..5d3dc4d 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);
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list