encode_lavc: fix memory leak on --ofopts=help

Found by OSS-Fuzz.
This commit is contained in:
Kacper Michajłow committed 2024-11-02 01:40:41 +01:00
1 parent e96bffe7a8
commit bc9d982330
1 file changed
+1 -1
+1 -1
View File
@@ -546,7 +546,7 @@ bool encode_lavc_showhelp(struct mp_log *log, struct encode_opts *opts)
encode_lavc_printoptions(log, c, " --ofopts=", " ", NULL,
AV_OPT_FLAG_ENCODING_PARAM,
AV_OPT_FLAG_ENCODING_PARAM);
av_free(c);
avformat_free_context(c);
void *iter = NULL;
while ((format = av_muxer_iterate(&iter))) {
if (format->priv_class) {