aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/timecode.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-09 10:50:25 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-07 00:28:27 +0200
commit7c95dbd94e7982ed9188ab91e3497c1fc2714c09 (patch)
tree8f77190fe7af3f4a6f994be0cbf295986a43c747 /libavutil/timecode.c
parente8af7d0acdd9e2fe5d56e0d04e57d62be1ebc79b (diff)
downloadffmpeg-7c95dbd94e7982ed9188ab91e3497c1fc2714c09.tar.gz
avformat/matroskadec: Redo handling extradata allocation
Up until now, matroska_parse_tracks() has two main ways to set AVCodecParameters.extradata: A generic way via CodecPrivate (possibly with an offset) and by allocating a buffer manually; the pointer to this buffer is stored in a stack pointer. In particular, the latter method is problematic, as the buffer needs to be freed manually in case of error (currently there are no error conditions between the place where it is set to AVCodecParameters.extradata). Most of these buffers are very small (<= 22B), so replace the pointer to an allocated buffer with a stack buffer and set the extradata directly for the one place where the buffer may not be small. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/timecode.c')
0 files changed, 0 insertions, 0 deletions