diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-24 14:07:54 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 23:07:47 +0200 |
commit | 8e32b1f0963d01d4f5d4803eb721f162e0d58d9a (patch) | |
tree | 94a91168329abd36f717b6fc7ea7b2ef60cdea2d /libavformat/rtsp.c | |
parent | 199fb40278146c5bb162990c66ad3cd561abc780 (diff) |
libavformat: Use ffio_free_dyn_buf where applicable
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 49a89dfae8..f7b7b32851 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -703,11 +703,9 @@ void ff_rtsp_undo_setup(AVFormatContext *s, int send_packets) AVFormatContext *rtpctx = rtsp_st->transport_priv; av_write_trailer(rtpctx); if (rt->lower_transport == RTSP_LOWER_TRANSPORT_TCP) { - uint8_t *ptr; if (CONFIG_RTSP_MUXER && rtpctx->pb && send_packets) ff_rtsp_tcp_write_packet(s, rtsp_st); - avio_close_dyn_buf(rtpctx->pb, &ptr); - av_free(ptr); + ffio_free_dyn_buf(&rtpctx->pb); } else { avio_close(rtpctx->pb); } |