aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-09-01 02:16:33 -0300
committerJames Almer <jamrial@gmail.com>2017-09-01 02:16:33 -0300
commit78a7af823b7c2a1e3184e6680f2b49bf67101e5c (patch)
tree07ec2c75848eb926ace16830742be70e61f8282c /libavformat/segment.c
parentb12e4d3bb8df994f042ff1216fb8de2b967aab9e (diff)
downloadffmpeg-78a7af823b7c2a1e3184e6680f2b49bf67101e5c.tar.gz
Use the new AVIOContext destructor.
(cherry picked from commit 6f554521afdf7ab4edbfaa9536660a1dca946b19) Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 0e8bcddb00..b0ef6dd38e 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -569,7 +569,7 @@ static int open_null_ctx(AVIOContext **ctx)
static void close_null_ctxp(AVIOContext **pb)
{
av_freep(&(*pb)->buffer);
- av_freep(pb);
+ avio_context_free(pb);
}
static int select_reference_stream(AVFormatContext *s)