diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-07 10:58:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:59 +0100 |
commit | 6ab290e20a55eead17d6fd21c031028f101c9662 (patch) | |
tree | f1228306e9e8c4419a9c3b5058e57304b6888b6a /libavutil/sha512.c | |
parent | 515aa63e4dd76a96022df04b07823b568c5fef65 (diff) | |
download | ffmpeg-6ab290e20a55eead17d6fd21c031028f101c9662.tar.gz |
avcodec/frame_thread_encoder: Fix segfault on allocation error
Fixes a segfault from av_fifo_size(NULL) that happens in
ff_frame_thread_encoder_free if the fifo couldn't be allocted;
furthermore the mutexes and conditions that are destroyed in
ff_frame_thread_encoder_free are not even initialized at this point,
so don't call said function.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 2ccbc40eefd22a6aac1e543ea849951e159f4d8a)
Diffstat (limited to 'libavutil/sha512.c')
0 files changed, 0 insertions, 0 deletions