X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtpenc_chain.c;h=74f306eb96b5f66b47fe27f2237a15b4910ffd8d;hb=e8565d21c276ab9ac5ce785549420321fbd0b093;hp=302c14c11acccd1d65897ee9d90af7692cb1066a;hpb=fab8b88a5ebc0e05b0bf3d317439d9dcc676d8d1;p=ffmpeg diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c index 302c14c11ac..74f306eb96b 100644 --- a/libavformat/rtpenc_chain.c +++ b/libavformat/rtpenc_chain.c @@ -91,9 +91,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, if (handle && rtpctx->pb) { avio_closep(&rtpctx->pb); } else if (rtpctx->pb) { - uint8_t *ptr; - avio_close_dyn_buf(rtpctx->pb, &ptr); - av_free(ptr); + ffio_free_dyn_buf(&rtpctx->pb); } avformat_free_context(rtpctx); return ret;