aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sapenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-09 13:39:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-09 13:39:48 +0100
commit643dee846addc190fe2596ca8d9b53bafeba080f (patch)
treec7246ec244b2634747038020331846cec81c3765 /libavformat/sapenc.c
parent2959a612326c5e473518eb91c4b66020468a11fe (diff)
downloadffmpeg-643dee846addc190fe2596ca8d9b53bafeba080f.tar.gz
avformat/sapenc: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r--libavformat/sapenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index f90955790d..07fbf48e97 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
@@ -49,7 +49,7 @@ static int sap_write_close(AVFormatContext *s)
if (!rtpctx)
continue;
av_write_trailer(rtpctx);
- avio_close(rtpctx->pb);
+ avio_closep(&rtpctx->pb);
avformat_free_context(rtpctx);
s->streams[i]->priv_data = NULL;
}