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 f768fb0..e69fdc2 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;