From 6ea08be59ac503f7309a19a50d5e664426e8c9f3 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Thu, 10 Aug 2023 15:51:44 -0500 Subject: player: make sub-pos a float value mpv makes this option an integer, but the underlying ass API actually accepts doubles. From some testing, there is no meaningful precision difference between float or double (it seems to go in roughly 0.05 steps), so just make it a float. sd_lavc also can handle non-integer values here. Closes #11583. --- options/options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/options.h') diff --git a/options/options.h b/options/options.h index 0224e5609d..36764ea84e 100644 --- a/options/options.h +++ b/options/options.h @@ -78,7 +78,7 @@ typedef struct mp_vo_opts { struct mp_subtitle_opts { bool sub_visibility; bool sec_sub_visibility; - int sub_pos; + float sub_pos; float sub_delay; float sub_fps; float sub_speed; -- cgit v1.2.3