Signed-off-by: Andreas Rheinhardt <[email protected]>
---
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;
}
--
2.21.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".