mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-16 20:35:23 +00:00
avio: make avio_close(NULL) a no-op
Its behaviour in line with ffurl_close(NULL).
This commit is contained in:
parent
546adc1fee
commit
e1e146a2d1
@ -756,8 +756,12 @@ int avio_open2(AVIOContext **s, const char *filename, int flags,
|
||||
|
||||
int avio_close(AVIOContext *s)
|
||||
{
|
||||
URLContext *h = s->opaque;
|
||||
URLContext *h;
|
||||
|
||||
if (!s)
|
||||
return 0;
|
||||
|
||||
h = s->opaque;
|
||||
av_free(s->buffer);
|
||||
av_free(s);
|
||||
return ffurl_close(h);
|
||||
|
Loading…
Reference in New Issue
Block a user