diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-10 21:39:28 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | a080af9b8c89ab74320a9377da5827e5b532685d (patch) | |
tree | de419d606cfaa12f58df8fc3f4abe575679b5448 /libavcodec/acelp_pitch_delay.c | |
parent | d0a8273efeb9acf149e0e4780d57936130cc9814 (diff) | |
download | ffmpeg-a080af9b8c89ab74320a9377da5827e5b532685d.tar.gz |
avfilter/vf_subtitles: Fix leaks on failure
init_subtitles() sometimes returned directly upon error without cleaning
up after itself. The easiest way to trigger this is by using
picture-based subtitles; it is also possible to run into this in case of
missing decoders or allocation failures.
Furthermore, return the proper error code in case of missing decoder.
Reviewed-by: Nicolas George <george@nsup.org>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 77ace1ffea6bd40d44326c1a87a55db0937877f1)
Diffstat (limited to 'libavcodec/acelp_pitch_delay.c')
0 files changed, 0 insertions, 0 deletions