PR #22249 opened by sanks011
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22249
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22249.patch

Fix two incorrect Unicode mappings in the CCSET_EXTENDED_SPANISH_FRENCH_MISC
character set:

1. OPENING SINGLE QUOTE (0x26) was incorrectly mapped to U+00B4 ACUTE ACCENT.
   Per CTA-608-E Section 6.4.2, it should map to U+2018 LEFT SINGLE QUOTATION
   MARK to mirror the standard apostrophe (U+2019), which is already correctly
   mapped in the basic character set.

2. PLAIN SINGLE QUOTE (0x29) was incorrectly mapped to U+2018 LEFT SINGLE
   QUOTATION MARK. It should map to U+0027 APOSTROPHE, the neutral (vertical)
   glyph.

Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21332
Signed-off-by: Sankalpa Sarkar <[email protected]>


>From c21c2160b197f718e4bada0ed5f1cb7bed6d1df6 Mon Sep 17 00:00:00 2001
From: Sankalpa Sarkar <[email protected]>
Date: Sun, 22 Feb 2026 13:45:09 +0530
Subject: [PATCH] avcodec/ccaption_dec: fix EIA-608 Extended Character Set
 single quote mappings

Fix two incorrect Unicode mappings in the CCSET_EXTENDED_SPANISH_FRENCH_MISC
character set:

1. OPENING SINGLE QUOTE (0x26) was incorrectly mapped to U+00B4 ACUTE ACCENT.
   Per CTA-608-E Section 6.4.2, it should map to U+2018 LEFT SINGLE QUOTATION
   MARK to mirror the standard apostrophe (U+2019), which is already correctly
   mapped in the basic character set.

2. PLAIN SINGLE QUOTE (0x29) was incorrectly mapped to U+2018 LEFT SINGLE
   QUOTATION MARK. It should map to U+0027 APOSTROPHE, the neutral (vertical)
   glyph.

Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21332
Signed-off-by: Sankalpa Sarkar <[email protected]>
---
 libavcodec/ccaption_dec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 9b6c766d87..fc49a2cb0b 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -108,10 +108,10 @@ enum cc_charset {
         ENTRY(0x23, "\u00da")                            \
         ENTRY(0x24, "\u00dc")                            \
         ENTRY(0x25, "\u00fc")                            \
-        ENTRY(0x26, "\u00b4")                            \
+        ENTRY(0x26, "\u2018")                            \
         ENTRY(0x27, "\u00a1")                            \
         ENTRY(0x28, "*")                                 \
-        ENTRY(0x29, "\u2018")                            \
+        ENTRY(0x29, "'")                                 \
         ENTRY(0x2a, "-")                                 \
         ENTRY(0x2b, "\u00a9")                            \
         ENTRY(0x2c, "\u2120")                            \
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to