diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-06 01:47:57 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-10 22:12:02 +0200 |
commit | eb583b3cb98797e8e815b7432f90cae8e8d52794 (patch) | |
tree | 18dd31d552a57306a59b188c0e347b08755b7d3b /libavformat/mov_esds.c | |
parent | b539ed3fd553d53c11956bc7573fba259297f53d (diff) | |
download | ffmpeg-eb583b3cb98797e8e815b7432f90cae8e8d52794.tar.gz |
avcodec/dnxhdenc: Fix segfault when using too many slice threads
The DNXHD encoder's context contains an array of 32 pointers to
DNXHDEncContexts used in case of slice threading; when trying
to use more than 32 threads with slice threading, the encoder's init
function errors out, but the close function takes avctx->thread_count
at face value and tries to free inexistent elements of the array,
leading to potential crashes.
Fix this by modifying the check used to decide whether the slice
contexts should be freed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mov_esds.c')
0 files changed, 0 insertions, 0 deletions