diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-01 22:11:06 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-15 22:46:33 +0200 |
commit | 2f4b43a5a153e44476603a9cef30a1f1a08d749f (patch) | |
tree | f356e8db4353b867f81138892aa92fe69465c884 /libavfilter/vf_paletteuse.c | |
parent | 1b20853fb3e2c4879cdecf2414a2d68760df1149 (diff) | |
download | ffmpeg-2f4b43a5a153e44476603a9cef30a1f1a08d749f.tar.gz |
avfilter/vf_paletteuse: Remove redundant freeing code
AVFilter.uninit is called automatically if init fails.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_paletteuse.c')
-rw-r--r-- | libavfilter/vf_paletteuse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c index f07ef5d760..4e90927322 100644 --- a/libavfilter/vf_paletteuse.c +++ b/libavfilter/vf_paletteuse.c @@ -1076,11 +1076,8 @@ static av_cold int init(AVFilterContext *ctx) s->last_in = av_frame_alloc(); s->last_out = av_frame_alloc(); - if (!s->last_in || !s->last_out) { - av_frame_free(&s->last_in); - av_frame_free(&s->last_out); + if (!s->last_in || !s->last_out) return AVERROR(ENOMEM); - } s->set_frame = set_frame_lut[s->color_search_method][s->dither]; |