diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 13:39:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 13:39:48 +0100 |
commit | 643dee846addc190fe2596ca8d9b53bafeba080f (patch) | |
tree | c7246ec244b2634747038020331846cec81c3765 /libavformat | |
parent | 2959a612326c5e473518eb91c4b66020468a11fe (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavformat/sapenc.c | 2 |
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; } |