summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_chain.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-24 14:07:54 +0200
committerMartin Storsjö <martin@martin.st>2015-02-24 23:07:47 +0200
commit8e32b1f0963d01d4f5d4803eb721f162e0d58d9a (patch)
tree94a91168329abd36f717b6fc7ea7b2ef60cdea2d /libavformat/rtpenc_chain.c
parent199fb40278146c5bb162990c66ad3cd561abc780 (diff)
downloadffmpeg-8e32b1f0963d01d4f5d4803eb721f162e0d58d9a.tar.gz
libavformat: Use ffio_free_dyn_buf where applicable
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc_chain.c')
-rw-r--r--libavformat/rtpenc_chain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c
index 773a7dbbc8..e58eb545b8 100644
--- a/libavformat/rtpenc_chain.c
+++ b/libavformat/rtpenc_chain.c
@@ -89,9 +89,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
if (handle && rtpctx->pb) {
avio_close(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;