diff options
author | wm4 <wm4@nowhere> | 2017-06-13 19:50:25 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-13 19:57:00 +0200 |
commit | 3bbb6078a5aa10022fb4817bbbe14050951521ee (patch) | |
tree | fe936fa463aaa6dd1dc98709a341dee44e643f16 /stream/stream_cb.c | |
parent | 4e663566dda9fea8cbff8e58f65e91863cbf42a4 (diff) | |
download | mpv-3bbb6078a5aa10022fb4817bbbe14050951521ee.tar.bz2 mpv-3bbb6078a5aa10022fb4817bbbe14050951521ee.tar.xz |
stream: rewrite url escaping/unescaping functions
The original functions come from 24c6f11c8b8, which says that these
functions were copied from another project. This other project is GPL
and was written by an unknown author, so there is no hope to relicense
them to LGPL.
Replace the existing functions with code written by Avi Halachmi. He did
not see the old code, but wrote it based on the function signature and
an extended description of what they should do (http://sprunge.us/edia).
Some additional help was provided by me (in particular the function of
the "ok" parameter and how to implement it - not in the original
ASFRecorder code).
Some of the code is hilariously similar, but these are coincidences. The
name of the variable "c" probably "leaked" from me, but "o" is a true
coincidence.
The code was integrated by me - my only change is changing the function
names to the old ones, moving the order of the top-level declarations,
and changing "default_ok" to "url_default_ok", and changing the strings
from char* to char[].
The author of the new code is Avi Halachmi.
Diffstat (limited to 'stream/stream_cb.c')
0 files changed, 0 insertions, 0 deletions