History

avcodec/ccaption_dec: Use static_assert instead of _Static_assert

The latter is not supported by MSVC 19.27.

Andreas Rheinhardt committed 2 years ago

Commit 2a0194b1 parent f1b08b81 file · +4 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/ccaption_dec.c+4−3
@@ -19,6 +19,7 @@ · 18 unmodified lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
21 21
22#include <assert.h>
22#include "avcodec.h"23#include "avcodec.h"
23#include "ass.h"24#include "ass.h"
24#include "codec_internal.h"25#include "codec_internal.h"
@@ -180,9 +181,9 @@ static const char charset_overrides[4][128][sizeof("\u266a")] = · 155 unmodified lines
180};181};
181#define EMPTY_START(IDX)182#define EMPTY_START(IDX)
182#define EMPTY_END183#define EMPTY_END
183#define ASSERT_ENTRY(IDX, str) \184#define ASSERT_ENTRY(IDX, str) \
184 _Static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \185 static_assert(sizeof(str) <= sizeof(charset_overrides[0][0]), \
185 "'" str "' string takes too much space");186 "'" str "' string takes too much space");
186CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END)187CHARSET_OVERRIDE_LIST(EMPTY_START, ASSERT_ENTRY, EMPTY_END)
187 188
188static const unsigned char bg_attribs[8] = // Color189static const unsigned char bg_attribs[8] = // Color

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t