From: sanks011 via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: sanks011 <code@ffmpeg.org>
Subject: [FFmpeg-devel] [PR] avcodec/ccaption_dec: fix EIA-608 Extended Character Set single quote mappings (PR #22249)
Date: Sun, 22 Feb 2026 08:29:38 -0000
Message-ID: <177174897864.25.5942990071988620255@29965ddac10e> (raw)
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 <sankalpasarkar68@gmail.com>
>From c21c2160b197f718e4bada0ed5f1cb7bed6d1df6 Mon Sep 17 00:00:00 2001
From: Sankalpa Sarkar <sankalpasarkar68@gmail.com>
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 <sankalpasarkar68@gmail.com>
---
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 -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
reply other threads:[~2026-02-22 8:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=177174897864.25.5942990071988620255@29965ddac10e \
--to=ffmpeg-devel@ffmpeg.org \
--cc=code@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git