summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-21 14:47:50 +0100
committerwm4 <wm4@nowhere>2020-02-21 14:48:23 +0100
commit605e1fb76667802408412128393ceecb4a932180 (patch)
tree03bb14778ef305fab7c0a2a28c4d1ccce4269050 /demux
parent2eab35fdf7bc0a5782cebfe032c66c44a4661b10 (diff)
downloadmpv-605e1fb76667802408412128393ceecb4a932180.tar.bz2
mpv-605e1fb76667802408412128393ceecb4a932180.tar.xz
ytdl_hook, edl: add fps, samplerate codec parameters
Well, didn't help much in the case I was interested it.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_edl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_edl.c b/demux/demux_edl.c
index 6deba77b9f..256b304f3a 100644
--- a/demux/demux_edl.c
+++ b/demux/demux_edl.c
@@ -270,6 +270,8 @@ static struct tl_root *parse_edl(bstr str, struct mp_log *log)
sh->codec->codec = "null";
sh->codec->disp_w = get_param_int(&ctx, "w", 0);
sh->codec->disp_h = get_param_int(&ctx, "h", 0);
+ sh->codec->fps = get_param_int(&ctx, "fps", 0);
+ sh->codec->samplerate = get_param_int(&ctx, "samplerate", 0);
tl->delay_open = true;
} else {
mp_err(log, "Unknown header: '%.*s'\n", BSTR_P(f_type));