summaryrefslogtreecommitdiff
path: root/media-video/vlc-3.0.20-r11/ass-playres.patch
blob: c8a0cd6eb5426788547cdf5f812fca7017a3833b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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