avformat/avio: Use ffurl_closep

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Andreas Rheinhardt 2019-11-29 10:42:48 +01:00 committed by Michael Niedermayer
parent 8c2f81a17a
commit 2205fb2810

View File

@ -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;
}