[FFmpeg-devel] [PATCH 20/60] fftools/ffmpeg_mux_init: remove unused variable

Marvin Scholz epirat07 at gmail.com
Sun Sep 8 23:20:42 EEST 2024


This dict is declared and freed but nothing is ever written to it.
---
 fftools/ffmpeg_mux_init.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index 37d626add6..8d475f5b45 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -915,7 +915,6 @@ static int streamcopy_init(const Muxer *mux, OutputStream *ost, AVDictionary **e
     uint32_t             codec_tag  = par->codec_tag;
 
     AVCodecContext      *codec_ctx  = NULL;
-    AVDictionary        *codec_opts = NULL;
 
     AVRational           fr         = ost->frame_rate;
 
@@ -1019,7 +1018,6 @@ static int streamcopy_init(const Muxer *mux, OutputStream *ost, AVDictionary **e
 
 fail:
     avcodec_free_context(&codec_ctx);
-    av_dict_free(&codec_opts);
     return ret;
 }
 
-- 
2.39.3 (Apple Git-146)




More information about the ffmpeg-devel mailing list