Commit 3eff98c9 authored by James Almer's avatar James Almer

avformat/rtpenc_chain: use the proper function to free AVFormatContext

Fixes ticket #7075
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent db772308
...@@ -101,7 +101,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, ...@@ -101,7 +101,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
return 0; return 0;
fail: fail:
av_free(rtpctx); avformat_free_context(rtpctx);
if (handle) if (handle)
ffurl_close(handle); ffurl_close(handle);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment