summaryrefslogtreecommitdiff
path: root/libavcodec/jpegxl_parser.c
diff options
context:
space:
mode:
authorTong Wu <tong1.wu@intel.com>2023-08-28 15:14:11 +0800
committerJames Almer <jamrial@gmail.com>2023-08-28 22:11:51 -0300
commita25a60d763061da695c3c563dcafbf392aea5579 (patch)
tree5bb4c9269e4125a95b9e30a30c0699d2ef8dfa9d /libavcodec/jpegxl_parser.c
parentd0a64f9a81530436e3b3e86767f51d481d3ce4a8 (diff)
avcodec/jpegxl_parser: fix a compile error
Compiler: MSVC 14.35.32215 Error type: error C2099: initializer is not a constant Related commit: 0c0dd23 avcodec/jpegxl_parser: add JPEG XL parser Signed-off-by: Tong Wu <tong1.wu@intel.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/jpegxl_parser.c')
-rw-r--r--libavcodec/jpegxl_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpegxl_parser.c b/libavcodec/jpegxl_parser.c
index 66e64b1074..20c8a41a89 100644
--- a/libavcodec/jpegxl_parser.c
+++ b/libavcodec/jpegxl_parser.c
@@ -49,7 +49,7 @@
#define clog1p(x) (ff_log2(x) + !!(x))
#define unpack_signed(x) (((x) & 1 ? -(x)-1 : (x))/2)
#define div_ceil(x, y) (((x) - 1) / (y) + 1)
-#define vlm(a,b) (VLCElem){.sym = (a), .len = (b)}
+#define vlm(a,b) {.sym = (a), .len = (b)}
typedef struct JXLHybridUintConf {
int split_exponent;