From: Baptiste Coudurier Date: Sun, 22 Mar 2009 02:47:35 +0000 (+0000) Subject: since code now use get_bits_long, allocate padding buffer X-Git-Tag: v0.6~5142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08a5b4e9b5d008ea864c7a194db9a0d94aa4a7c6;p=platform%2Fupstream%2Flibav.git since code now use get_bits_long, allocate padding buffer Originally committed as revision 18138 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/mov.c b/libavformat/mov.c index d0dbef62a..f4ba5e243 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1166,7 +1166,7 @@ static int mov_read_stsz(MOVContext *c, ByteIOContext *pb, MOVAtom atom) num_bytes = (entries*field_size+4)>>3; - buf = av_malloc(num_bytes); + buf = av_malloc(num_bytes+FF_INPUT_BUFFER_PADDING_SIZE); if (!buf) { av_freep(&sc->sample_sizes); return AVERROR(ENOMEM);