diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-07 23:46:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-24 01:01:02 +0200 |
commit | e013a71fe3cd8b544d1288a2ed80521fa35e44c1 (patch) | |
tree | 4099def47c80e5a29af4ea331a57de8740738170 /libavfilter/vf_weave.c | |
parent | 257cd5fa389465032b2b222fff5ada9dfebeb4d0 (diff) | |
download | ffmpeg-e013a71fe3cd8b544d1288a2ed80521fa35e44c1.tar.gz |
avfilter: Remove redundant ff_formats/channel_layouts_unref()
ff_add_format() and ff_add_channel_layout() already unref the list upon
error.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/vf_weave.c')
-rw-r--r-- | libavfilter/vf_weave.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavfilter/vf_weave.c b/libavfilter/vf_weave.c index 8951b09095..8d4eb3d5a4 100644 --- a/libavfilter/vf_weave.c +++ b/libavfilter/vf_weave.c @@ -60,7 +60,6 @@ static int query_formats(AVFilterContext *ctx) if (!(desc->flags & AV_PIX_FMT_FLAG_PAL) && !(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) { if ((ret = ff_add_format(&formats, fmt)) < 0) { - ff_formats_unref(&formats); return ret; } } |