summaryrefslogtreecommitdiff
path: root/libavfilter/vf_weave.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-07 23:46:33 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-24 01:01:02 +0200
commite013a71fe3cd8b544d1288a2ed80521fa35e44c1 (patch)
tree4099def47c80e5a29af4ea331a57de8740738170 /libavfilter/vf_weave.c
parent257cd5fa389465032b2b222fff5ada9dfebeb4d0 (diff)
downloadffmpeg-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.c1
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;
}
}