[FFmpeg-devel] [PATCH] url_split() ipv6 support

Ronald S. Bultje rsbultje
Fri Sep 28 06:33:04 CEST 2007


Hi,

On 9/27/07, Andreas ?man <andreas at olebyn.nu> wrote:
>
> Applied


Then here's #2 for ipv6 support in address parsing.

$ ./test-url_split
"test.avi"-> "" :// "" @ "" : "-1" / "test.avi"
"/tmp/test.mp3"-> "" :// "" @ "" : "-1" / "/tmp/test.mp3"
"file:///tmp/test.mp3"-> "file" :// "" @ "" : "-1" / "/tmp/test.mp3"
"http://www.address.com"-> "http" :// "" @ "www.address.com" : "-1" / ""
"http://www.address.com/"-> "http" :// "" @ "www.address.com" : "-1" / "/"
"http://www.address.com:80"-> "http" :// "" @ "www.address.com" : "80" / ""
"http://www.address.com:80/"-> "http" :// "" @ "www.address.com" : "80" /
"/"
"http://www.address.com:80/test.mp3"-> "http" :// "" @ "www.address.com" :
"80" / "/test.mp3"
"http://1.2.3.4:80/test.mp4"-> "http" :// "" @ "1.2.3.4" : "80" /
"/test.mp4"
"http://:1::80:1/test.mov"-> "http" :// "" @ ":1::80:1" : "-1" / "/test.mov"
"http://:::80/test.mp5"-> "http" :// "" @ "::" : "80" / "/test.mp5"
"http://[::1]:80/test.mp6"-> "http" :// "" @ "::1" : "80" / "/test.mp6"
"http://[host.address]:80/test.mp3"-> "http" :// "" @ "host.address" : "80"
/ "/test.mp3"
"file:///[pat]h/to/file.mp3"-> "file" :// "" @ "" : "-1" /
"/[pat]h/to/file.mp3"
"http://1:2:3:4:5:6:7:8:80/test.mp3"-> "http" :// "" @ "1:2:3:4:5:6:7:8" :
"80" / "/test.mp3"
"http://me@:::80/test.mp3"-> "http" :// "me" @ "::" : "80" / "/test.mp3"
"http://me:x@:::80/test.mp3"-> "http" :// "me:x" @ "::" : "80" / "/test.mp3"

All are good now.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-url_split-ipv6.patch
Type: application/octet-stream
Size: 3110 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070928/c4f8f399/attachment.obj>



More information about the ffmpeg-devel mailing list