diff options
author | Thorsten Jordan <tjordan@ macrosystem.de> | 2007-11-07 08:34:00 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-11-07 08:34:00 +0000 |
commit | 346db900bf4cefe8ebefe7a51c01d80d6a7d2e3e (patch) | |
tree | b0ee65dc751babc54394ee409e7d3b8e9103ea45 /libavformat/avio.c | |
parent | 12877faf7c3af83d60dc185cf78f0ee5a3c0f67d (diff) | |
download | ffmpeg-streaming-346db900bf4cefe8ebefe7a51c01d80d6a7d2e3e.zip ffmpeg-streaming-346db900bf4cefe8ebefe7a51c01d80d6a7d2e3e.tar.gz |
Check context before accessing its field.
Patch by Thorsten Jordan: tjordan macrosystem de
Originally committed as revision 10939 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 23642db..177e91d 100644 --- 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); |