summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/vlc-3.0.20-r11/ass-playres.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/media-video/vlc-3.0.20-r11/ass-playres.patch b/media-video/vlc-3.0.20-r11/ass-playres.patch
new file mode 100644
index 0000000..c8a0cd6
--- /dev/null
+++ b/media-video/vlc-3.0.20-r11/ass-playres.patch
@@ -0,0 +1,28 @@
+From 795b1bc62be58ee1636c1fac28330d02bc0e08e0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Fran=C3=A7ois=20Cartegnie?= <fcvlcdev@free.fr>
+Date: Thu, 7 Dec 2023 17:03:09 +0100
+Subject: [PATCH] codec: libass: fix inverted patch ratio
+
+refs #27771
+
+(cherry picked from commit b658d2887d645c8c7101c4106b9764bc6162dd97)
+---
+ modules/codec/libass.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/modules/codec/libass.c b/modules/codec/libass.c
+index 898df14e280c..e537bed2a09c 100644
+--- a/modules/codec/libass.c
++++ b/modules/codec/libass.c
+@@ -787,7 +787,7 @@ static void OldEngineClunkyRollInfoPatch( decoder_t *p_dec, ASS_Track *p_track )
+ else if( !strncmp( s, "PlayResX: ", 10 ) ||
+ !strncmp( s, "PlayResY: ", 10 ) )
+ {
+- playres['Y' - s[7]] = atoi( &s[9] );
++ playres[s[7] - 'X'] = atoi( &s[9] );
+ }
+ else if( !strncmp( s, "Original Script: ", 17 ) )
+ {
+--
+GitLab
+