mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
since code now use get_bits_long, allocate padding buffer
Originally committed as revision 18138 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5f01c1258f
commit
08a5b4e9b5
@ -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) {
|
if (!buf) {
|
||||||
av_freep(&sc->sample_sizes);
|
av_freep(&sc->sample_sizes);
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user