projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12877fa
)
Check context before accessing its field.
author
Thorsten Jordan
<tjordan@ macrosystem.de>
Wed, 7 Nov 2007 08:34:00 +0000
(08:34 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Wed, 7 Nov 2007 08:34:00 +0000
(08:34 +0000)
Patch by Thorsten Jordan: tjordan macrosystem de
Originally committed as revision 10939 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avio.c
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
23642db
..
177e91d
100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-133,6
+133,7
@@
offset_t url_seek(URLContext *h, offset_t pos, int whence)
int url_close(URLContext *h)
{
int ret;
+ if (!h) return 0; /* can happen when url_open fails */
ret = h->prot->url_close(h);
av_free(h);