aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-03-22 02:47:35 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-03-22 02:47:35 +0000
commit08a5b4e9b5d008ea864c7a194db9a0d94aa4a7c6 (patch)
tree7a6f50a8caa10b064cf98022eb2e42c76f98d4d7 /libavformat/mov.c
parent5f01c1258f98afce006488b65a5d7cf6cc9960f3 (diff)
downloadffmpeg-08a5b4e9b5d008ea864c7a194db9a0d94aa4a7c6.tar.gz
since code now use get_bits_long, allocate padding buffer
Originally committed as revision 18138 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index d0dbef62af..f4ba5e243f 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);