diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-11-29 10:42:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-29 19:58:35 +0100 |
commit | 2205fb281074a31388e78c615193410cc9c10042 (patch) | |
tree | 6f9e66709f3c9f423574b2ce95f0d3465db4c784 | |
parent | 8c2f81a17a21ce3af16d7dd17a2641dbc61432d6 (diff) | |
download | ffmpeg-2205fb281074a31388e78c615193410cc9c10042.tar.gz |
avformat/avio: Use ffurl_closep
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/avio.c | 3 |
1 files changed, 1 insertions, 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; } |