0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00
mpv/stream
wm4 d558accaa6 stream_lavf: escape disallowed characters in http URLs
In my opinion, libavformat should be doing this. But a patch handling a
very safe case rejected, so I suppose we have to do it manually. (This
patch was only escaping spaces, which can never work because they break
the basic syntax of the HTTP protocol.)

This commit attempts to do 2 things:
- Try to guess whether libavformat will use the URL for http. This is
  not always trivial, because some protocols will recursively pass part
  of the user URL to http in some way.
- Try to fix invalid URLs. We fix only the simplest case: only
  characters that are never valid are escaped. This excludes invalid
  escape codes, which happen with freestanding '%' characters.

Fixes #1495.
2015-01-21 12:10:49 +01:00
..
ai_alsa1x.c audio: drop swapped-endian audio formats 2014-09-23 23:09:25 +02:00
ai_oss.c Do not call strerror() 2014-11-26 21:21:56 +01:00
ai_sndio.c audio: drop swapped-endian audio formats 2014-09-23 23:09:25 +02:00
audio_in.c Do not call strerror() 2014-11-26 21:21:56 +01:00
audio_in.h demux: mp_msg conversions 2013-12-21 21:43:16 +01:00
cache_file.c cache_file: refuse to cache unseekable streams 2014-09-29 18:06:44 +02:00
cache.c cache: cache-position needs to be int64_t 2015-01-13 02:39:16 +01:00
cookies.c Kill all tabs 2014-04-13 18:03:01 +02:00
cookies.h options: move network related options to MPOpts 2013-12-22 13:11:22 +01:00
discnav.h dvd, bd: don't unnecessarily block on demuxer/stream all the time 2014-12-04 22:42:07 +01:00
dvb_tune.c dvb: uncrustify 2015-01-06 20:19:49 +01:00
dvb_tune.h stream_dvb: Also demux PMT if possible, reactivate TPID parsing. 2015-01-06 19:52:27 +01:00
dvbin.h dvb: uncrustify 2015-01-06 20:19:49 +01:00
frequencies.c stream_pvr: remove global option variables 2014-06-11 00:34:42 +02:00
frequencies.h stream_pvr: remove global option variables 2014-06-11 00:34:42 +02:00
rar.c Remove some unneeded NULL checks 2014-11-21 09:58:09 +01:00
rar.h stream: redo playback abort handling 2014-09-13 16:09:51 +02:00
stream_avdevice.c Add more const 2014-06-11 00:39:14 +02:00
stream_bluray.c stream_bluray: autodetect AVCHD directories 2014-09-27 18:33:36 +02:00
stream_cdda.c stream_cdda: don't return number of tracks as number of titles 2014-12-13 20:25:56 +01:00
stream_dvb.c stream_dvb: silence bogus compiler warning 2015-01-19 17:58:37 +01:00
stream_dvd_common.c stream_dvd: better .ifo probing 2014-09-25 23:54:18 +02:00
stream_dvd_common.h stream_dvd: better .ifo probing 2014-09-25 23:54:18 +02:00
stream_dvd.c command, dvd: add property which returns list of DVD titles 2014-12-13 20:25:56 +01:00
stream_dvdnav.c dvd: try to improve seeking 2015-01-19 21:30:05 +01:00
stream_edl.c stream: always disable cache for pseudo-streams 2014-12-24 14:33:34 +01:00
stream_file.c Do not call strerror() 2014-11-26 21:21:56 +01:00
stream_lavf.c stream_lavf: escape disallowed characters in http URLs 2015-01-21 12:10:49 +01:00
stream_memory.c Add more const 2014-06-11 00:39:14 +02:00
stream_mf.c Add more const 2014-06-11 00:39:14 +02:00
stream_null.c Add more const 2014-06-11 00:39:14 +02:00
stream_pvr.c stream_pvr: uncrustify 2015-01-06 20:27:36 +01:00
stream_rar.c stream: redo playback abort handling 2014-09-13 16:09:51 +02:00
stream_smb.c Add more const 2014-06-11 00:39:14 +02:00
stream_tv.c Add more const 2014-06-11 00:39:14 +02:00
stream.c stream_lavf: escape disallowed characters in http URLs 2015-01-21 12:10:49 +01:00
stream.h command, dvd: add property which returns list of DVD titles 2014-12-13 20:25:56 +01:00
tv.c tv: initialize frequencies to 0 2014-08-28 12:02:50 +02:00
tv.h tv: move demuxer parts to separate file 2014-07-05 17:07:15 +02:00
tvi_def.h Kill all tabs 2014-04-13 18:03:01 +02:00
tvi_dummy.c tv: remove printing of useless comment information 2014-06-11 00:34:42 +02:00
tvi_v4l2.c Do not call strerror() 2014-11-26 21:21:56 +01:00