v4l-utils/contrib/gconv: fix wrong conversion to ARIB-STD-B24
PATCH 1/1 v4l-utils/contrib/gconv: fix wrong conversion to ARIB-STD-B24
From: Akihiro Tsukada <[email protected]>
Some symbol characters were not encoded correctly, though decoding was OK. Since v4l-utils/libdvbv5 does not use encoding into ARIB-STD-B24, the bug should not affect libdvbv5,
but this fix supports some other applications.
Signed-off-by Akihiro Tsukada <[email protected]>
--- contrib/gconv/arib-std-b24.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
contrib/gconv/arib-std-b24.c +2 -5
@@ -1555,15 +1555,12 @@ find_extsym_idx (uint32_t ch) goto next; \ } \ \ -/* prefer KANJI(>= 0x7521) or EXTRA_SYMBOLS over JISX0213_{1,2} */ \ +/* KANJI shares some chars with EXTRA_SYMBOLS, but prefer extra symbols*/ \ r =find_extsym_idx (ch); \if (r >=0 ) \ { \ ch = ucs4_to_extsym[r][1 ]; \ -if ((ch &0xff00 ) >=0x7a00 ) \ - r =out_kanji (&st, ch, &outptr, outend); \ -else \ - r =out_extsym (&st, ch, &outptr, outend); \ + r =out_extsym (&st, ch, &outptr, outend); \ goto next; \ } \ \
Signature · 1 line
2.4.4