diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-10-10 01:39:06 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-10-10 18:56:55 +0200 |
commit | b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6 (patch) | |
tree | ae7c5381b40d294367055e4f4de87c90289709c8 /libavformat/aviobuf.c | |
parent | 82569b01a1cb0fee29c839a264af974f9c215d74 (diff) | |
download | ffmpeg-b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6.tar.gz |
avio: introduce avio_closep
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 7dc66e25a6..da836c6fd5 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -768,6 +768,13 @@ int avio_close(AVIOContext *s) return ffurl_close(h); } +int avio_closep(AVIOContext **s) +{ + int ret = avio_close(*s); + *s = NULL; + return ret; +} + int avio_printf(AVIOContext *s, const char *fmt, ...) { va_list ap; |