shithub: openh264

Download patch

ref: 34b994f6387b05b12702aa7d78321fae8e1210c3
parent: 67e41d9fd50f18771f17da2bb03bf2270ac76752
author: Tim-Philipp Müller <[email protected]>
date: Sun May 31 08:31:14 EDT 2020

Fix MSVC compiler warnings about non-ASCII characters in the source

Best not to use non-ASCII/UTF-8 characters in source code.

Fixes compiler warnings with MSVC on windows:

wels_common_basis.h: warning C4828: The file contains a character
 starting at offset 0x26b1 that is illegal in the current source
 character set (codepage 65001).

wels_common_basis.h: warning C4828: The file contains a character
 starting at offset 0x2797 that is illegal in the current source
 character set (codepage 65001).

--- a/codec/decoder/core/inc/wels_common_basis.h
+++ b/codec/decoder/core/inc/wels_common_basis.h
@@ -275,7 +275,7 @@
   { MB_TYPE_8x8   | MB_TYPE_P0L0 | MB_TYPE_P0L1 | MB_TYPE_P1L0 | MB_TYPE_P1L1,  4, 4 }    //B_8x8
 };
 
-//Table 7.17 � Sub-macroblock types in B macroblocks.
+//Table 7.17 Sub-macroblock types in B macroblocks.
 static const SPartMbInfo g_ksInterPSubMbTypeInfo[4] = {
   {SUB_MB_TYPE_8x8, 1, 2},
   {SUB_MB_TYPE_8x4, 2, 2},
@@ -283,7 +283,7 @@
   {SUB_MB_TYPE_4x4, 4, 1},
 };
 
-//Table 7.18 � Sub-macroblock types in B macroblocks.
+//Table 7.18 Sub-macroblock types in B macroblocks.
 static const SPartMbInfo g_ksInterBSubMbTypeInfo[] = {
   { MB_TYPE_DIRECT,                               1, 2 }, //B_Direct_8x8
   { SUB_MB_TYPE_8x8 | MB_TYPE_P0L0,                 1, 2 }, //B_L0_8x8