X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavformat%2Fmov.c;h=f4ba5e243f37601cd94f0796efec7dfaeddff198;hp=d0dbef62af306e882be1977b21ba5124d7554da4;hb=08a5b4e9b5d008ea864c7a194db9a0d94aa4a7c6;hpb=5f01c1258f98afce006488b65a5d7cf6cc9960f3 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);