[FFmpeg-cvslog] avformat/rtpenc_chain: use the proper function to free AVFormatContext

James Almer git at videolan.org
Mon Mar 26 06:54:33 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Mar 26 00:52:39 2018 -0300| [3eff98c9278804b4b664bad3853e5e60184c6a54] | committer: James Almer

avformat/rtpenc_chain: use the proper function to free AVFormatContext

Fixes ticket #7075

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3eff98c9278804b4b664bad3853e5e60184c6a54
---

 libavformat/rtpenc_chain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c
index f768fb002e..e69fdc27cf 100644
--- a/libavformat/rtpenc_chain.c
+++ b/libavformat/rtpenc_chain.c
@@ -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;



More information about the ffmpeg-cvslog mailing list