Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PR] avcodec/ccaption_dec: fix EIA-608 Extended Character Set single quote mappings (PR #22249)
@ 2026-02-22  8:29 sanks011 via ffmpeg-devel
  0 siblings, 0 replies; only message in thread
From: sanks011 via ffmpeg-devel @ 2026-02-22  8:29 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: sanks011

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-22  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-22  8:29 [FFmpeg-devel] [PR] avcodec/ccaption_dec: fix EIA-608 Extended Character Set single quote mappings (PR #22249) sanks011 via ffmpeg-devel

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