avformat/rtpenc_chain: use the proper function to free AVFormatContext

Fixes ticket #7075

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2018-03-26 00:52:39 -03:00
parent db77230894
commit 3eff98c927
1 changed files with 1 additions and 1 deletions

View File

@ -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;