]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rtpenc_chain: use the proper function to free AVFormatContext
authorJames Almer <jamrial@gmail.com>
Mon, 26 Mar 2018 03:52:39 +0000 (00:52 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 26 Mar 2018 03:52:39 +0000 (00:52 -0300)
Fixes ticket #7075

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/rtpenc_chain.c

index f768fb002ebcb67ed43ac843f9e00d551f252b0e..e69fdc27cfb7fdfc173794744b35d64f2103a752 100644 (file)
@@ -101,7 +101,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
     return 0;
 
 fail:
-    av_free(rtpctx);
+    avformat_free_context(rtpctx);
     if (handle)
         ffurl_close(handle);
     return ret;