summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-09-06 01:29:27 +0300
committeravih <avih@users.noreply.github.com>2021-09-06 10:16:25 +0300
commit3405f814fb7e080547af9a267a2d78be71eccfdf (patch)
tree639d9117a6267fcac9f92f0ae8a2974ceb9f4824
parent8fb4fd9a189bd18661ed9dd9e859ddae4dc6f415 (diff)
downloadmpv-3405f814fb7e080547af9a267a2d78be71eccfdf.tar.bz2
mpv-3405f814fb7e080547af9a267a2d78be71eccfdf.tar.xz
demux_playlist: extend maximum line size (again) to 2M
Last time it was extended was de3ecc60 from 8K to 512K two years ago. The issue currently is that youtube EDL files can get very big. Size of about 520K (one line), was observed, at the time of writing: mpv https://youtube.com/watch?v=DBzFQgSMHdQ --ytdl-format=299 ytdl_hook.lua is unaffected by this because EDL lists don't go through the file reader at demux_playlist.c (where each line was limited to 512K before this commit), however, EDL files on disk which are loaded with --playlist=file.edl do. Increase the limit to 2M so that such EDL files can also be loaded from disk. Fixes #9186
-rw-r--r--demux/demux_playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c
index 417642e75a..d671bbaf65 100644
--- a/demux/demux_playlist.c
+++ b/demux/demux_playlist.c
@@ -50,7 +50,7 @@ static bool check_mimetype(struct stream *s, const char *const *list)
struct pl_parser {
struct mp_log *log;
struct stream *s;
- char buffer[512 * 1024];
+ char buffer[2 * 1024 * 1024];
int utf16;
struct playlist *pl;
bool error;