aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rdt.c
diff options
context:
space:
mode:
authorAnton Khirnov2017-09-01 02:16:33 -0300
committerJames Almer2017-09-01 02:16:33 -0300
commit78a7af823b7c2a1e3184e6680f2b49bf67101e5c (patch)
tree07ec2c75848eb926ace16830742be70e61f8282c /libavformat/rdt.c
parentb12e4d3bb8df994f042ff1216fb8de2b967aab9e (diff)
Use the new AVIOContext destructor.
(cherry picked from commit 6f554521afdf7ab4edbfaa9536660a1dca946b19) Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r--libavformat/rdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index 8670eadce6..b69827fcbf 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -323,7 +323,7 @@ get_cache:
st, rdt->rmst[st->index], pkt);
if (rdt->audio_pkt_cnt == 0 &&
st->codecpar->codec_id == AV_CODEC_ID_AAC)
- av_freep(&rdt->rmctx->pb);
+ avio_context_free(&rdt->rmctx->pb);
}
pkt->stream_index = st->index;
pkt->pts = *timestamp;