]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove the avcodec_free_context(&codec_context) -- seems to cause a double free.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 16 Jul 2024 11:58:37 +0000 (12:58 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 16 Jul 2024 11:58:37 +0000 (12:58 +0100)
rtp.c

diff --git a/rtp.c b/rtp.c
index e44ff2531713da76433472886246cdd67cc51727..93e3fc84c1d3a089ba66cf9c3dd98ef1b1df65da 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -2094,10 +2094,10 @@ void avcodec_alloc_context3_cleanup_handler(void *arg) {
   av_free(codec_context);
 }
 
-void avcodec_open2_cleanup_handler(void *arg) {
-  debug(3, "avcodec_open2_cleanup_handler");
-  AVCodecContext *codec_context = arg;
-  avcodec_free_context(&codec_context);
+void avcodec_open2_cleanup_handler(__attribute__((unused)) void *arg) {
+  debug(3, "avcodec_open2_cleanup_handler -- does nothing right now");
+  // AVCodecContext *codec_context = arg;
+  // avcodec_free_context(&codec_context);
 }
 
 void av_parser_init_cleanup_handler(void *arg) {