]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Avoid allocating array for lace sizes
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 3 Dec 2019 17:09:06 +0000 (18:09 +0100)
committerJames Almer <jamrial@gmail.com>
Thu, 5 Dec 2019 02:11:37 +0000 (23:11 -0300)
commit9ad1a6d64cc6cefccaa94c105dd2e74951281987
treeb13d0873859340ab59b724a2a1ea0dcceeb023c4
parent668490ac981be1501652ebdfd633a498cb99ec2d
avformat/matroskadec: Avoid allocating array for lace sizes

The maximal number of frames in a lace can be 256; hence one has a not
excessive upper bound on the size of an array that can hold the sizes of
all the frames in a lace. Yet up until now, said array has been
dynamically allocated. This has been changed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskadec.c