diff mov.c @ 4782:400ca65902d2 libavformat

since code now use get_bits_long, allocate padding buffer
author bcoudurier
date Sun, 22 Mar 2009 02:47:35 +0000
parents 75d9edccd39c
children d5ae967cc549
line wrap: on
line diff
--- a/mov.c	Sun Mar 22 02:04:28 2009 +0000
+++ b/mov.c	Sun Mar 22 02:47:35 2009 +0000
@@ -1166,7 +1166,7 @@
 
     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);