This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avio: make avio_close(NULL) a no-op
Its behaviour in line with ffurl_close(NULL).
tags/n0.11
Luca Barbato
13 years ago
parent
546adc1fee
commit
e1e146a2d1
1 changed files
with
5 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
libavformat/aviobuf.c
+ 5
- 1
libavformat/aviobuf.c
View File
@@ -756,8 +756,12 @@ int avio_open2(AVIOContext **s, const char *filename, int flags,
int avio_close(AVIOContext *s)
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->buffer);
av_free(s);
av_free(s);
return ffurl_close(h);
return ffurl_close(h);
Write
Preview
Loading…
Cancel
Save