Commit 3ba2f39a authored by benoit's avatar benoit

Check context before accessing its field.

Patch by Thorsten Jordan: tjordan macrosystem de


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10939 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 394b66c2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment