Commit 2ec7bc915e for ffmpeg
commit 2ec7bc915e56c4f3cb71bb4f96c7d900965b6c82
Author: Sankalpa Sarkar <sankalpasarkar68@gmail.com>
Date: Sun Feb 22 13:45:09 2026 +0530
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 <sankalpasarkar68@gmail.com>
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") \