git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
since code now use get_bits_long, allocate padding buffer
[ffmpeg.git]
/
libavformat
/
mov.c
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
d0dbef6
..
f4ba5e2
100644
(file)
--- 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;
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);
if (!buf) {
av_freep(&sc->sample_sizes);
return AVERROR(ENOMEM);