Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-02 18:00:16 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-03 12:38:11 +0300
commit05c924a86db04e05831876dd2720093dcc2dc8e1 (patch)
treeb3db15ccd73d610d6833dca2d37c88e2583aaf37 /libavdevice/lavfi.c
parent77a37e0369b4b0adf06ccbda2f95828fb6afb2c3 (diff)
avdevice/lavfi: Cleanup generically on read_header failure
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 4eb1f56f7d..826dafbd00 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -356,8 +356,6 @@ end:
av_free(pix_fmts);
avfilter_inout_free(&input_links);
avfilter_inout_free(&output_links);
- if (ret < 0)
- lavfi_read_close(avctx);
return ret;
}
@@ -507,4 +505,5 @@ const AVInputFormat ff_lavfi_demuxer = {
.read_close = lavfi_read_close,
.flags = AVFMT_NOFILE,
.priv_class = &lavfi_class,
+ .flags_internal = FF_FMT_INIT_CLEANUP,
};