[FFmpeg-devel] [PATCH] applehttp: Improve handling of relative URLs

Martin Storsjö martin
Sat Oct 2 18:29:16 CEST 2010


Hi,

The current handling of relative URLs (making an absolute URL out of a 
previous absolute URL + a relative URL) fails in some cases - the attached 
patchset should make work for local relative paths, too, without any 
file:// prefix, and fixes a corner case regarding stepping backwards with 
".." in path hierarchies.

Luca B, you ran into some of these problems when you did some testing in 
August, does this fix things for you?

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-applehttp-Allow-the-base-url-to-be-a-local-file-name.patch
Type: text/x-diff
Size: 1397 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101002/90c7d44c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Reindent.patch
Type: text/x-diff
Size: 1032 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101002/90c7d44c/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-applehttp-Handle-a-.-path-segment-in-the-base-url.patch
Type: text/x-diff
Size: 1018 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101002/90c7d44c/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-applehttp-Add-comments-to-make_absolute_url.patch
Type: text/x-diff
Size: 1563 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101002/90c7d44c/attachment-0003.patch>



More information about the ffmpeg-devel mailing list