Handle the following type of relative URL correctly:
authorDuncan Salerno <duncan.salerno@gmail.com>
Tue, 25 Sep 2012 18:19:32 +0000 (19:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Sep 2012 01:43:06 +0000 (03:43 +0200)
commit4b80a619b7db37157d98f6e5a57ddf53c9132551
tree7fdab749cb5648deeb7e4888f66d2e569c3ab20d
parentf75c5f07a975d1809bf28b330ffd1d3dd430c96a
Handle the following type of relative URL correctly:

http://a/b + //c/d = http://c/d
http://a/b?c + ?d = http://a/b?d
http://a/b?c/d + /e = http://a/e

Updated with feedback from Clément Bœsch

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c