mpv/demux
Dudemanguy acac614032 demux_playlist: use --metacode-codepage when parsing playlist files
It's 2023 and people don't use UTF-8 for their m3u, ini, etc. files.
Well mpv already has the tools in place to try and guess other
codepages, so we might as well use it I guess. This change is pretty
awkward since we have to read line-by-line but mp_iconv_to_utf8 may
sometimes allocate memory. So sometimes the bstr needs to be freed and
sometimes not for every line. Also we need to make another copy of the
line on the stack since splitting by tokens and such will mess up the
original line which may possibly be allocated memory. The ugliness is
mostly hidden in pl_free_line, but it's still weird. Fixes #10911.
2023-10-07 02:41:27 +00:00
..
cache.c demux: prepend some cache options with demuxer 2023-09-18 17:13:15 +00:00
cache.h
codec_tags.c codec_tags: map some more image mimetypes 2023-10-02 17:49:48 +00:00
codec_tags.h
cue.c
cue.h
demux.c demux: change the default of metadata-codepage to auto 2023-10-07 02:41:27 +00:00
demux.h Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
demux_cue.c demux_cue: deprecate --demuxer-cue-codepage for --metadata-codepage 2023-10-07 02:41:27 +00:00
demux_disc.c Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
demux_edl.c
demux_lavf.c win32/pthread: define _POSIX_TIMERS to notify they are not supported 2023-09-29 20:48:58 +00:00
demux_libarchive.c
demux_mf.c demuxer: remove several mp_read_option_raw calls 2023-09-22 14:20:38 +00:00
demux_mkv.c demuxer: remove several mp_read_option_raw calls 2023-09-22 14:20:38 +00:00
demux_mkv_timeline.c
demux_null.c
demux_playlist.c demux_playlist: use --metacode-codepage when parsing playlist files 2023-10-07 02:41:27 +00:00
demux_raw.c
demux_timeline.c Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
ebml.c build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
ebml.h build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
matroska.h
packet.c
packet.h
stheader.h demux: add crop to mp_codec_params 2023-09-17 16:48:42 +00:00
timeline.c
timeline.h various: add missing include in header flles 2023-09-21 14:40:11 +00:00