[FFmpeg-cvslog] avcodec/jpegxl_parser: fix a compile error

Tong Wu git at videolan.org
Tue Aug 29 04:12:14 EEST 2023


ffmpeg | branch: master | Tong Wu <tong1.wu at intel.com> | Mon Aug 28 15:14:11 2023 +0800| [a25a60d763061da695c3c563dcafbf392aea5579] | committer: James Almer

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 at intel.com>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a25a60d763061da695c3c563dcafbf392aea5579
---

 libavcodec/jpegxl_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list