[FFmpeg-cvslog] avformat/avio: Use ffurl_closep

Andreas Rheinhardt git at videolan.org
Fri Nov 29 21:01:05 EET 2019


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Nov 29 10:42:48 2019 +0100| [2205fb281074a31388e78c615193410cc9c10042] | committer: Michael Niedermayer

avformat/avio: Use ffurl_closep

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2205fb281074a31388e78c615193410cc9c10042
---

 libavformat/avio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index c1bad312cd..2dd2312296 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -346,8 +346,7 @@ int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags,
     if (!ret)
         return 0;
 fail:
-    ffurl_close(*puc);
-    *puc = NULL;
+    ffurl_closep(puc);
     return ret;
 }
 



More information about the ffmpeg-cvslog mailing list