[FFmpeg-devel] [PATCH v3 2/5] libavcodec/vc2enc: Switch quant to int

IndecisiveTurtle geoster3d at gmail.com
Fri Apr 18 02:55:29 EEST 2025


From: IndecisiveTurtle <geoster3d at gmail.com>

Prevents compiler from mistaking it as a string
Also makes passing it to the GPU in a buffer easier
---
 libavcodec/vc2enc_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc2enc_common.h b/libavcodec/vc2enc_common.h
index eaaf5ac99c..40c9ff85b5 100644
--- a/libavcodec/vc2enc_common.h
+++ b/libavcodec/vc2enc_common.h
@@ -119,7 +119,7 @@ typedef struct VC2EncContext {
     int profile;
 
     /* Quantization matrix */
-    uint8_t quant[MAX_DWT_LEVELS][4];
+    int quant[MAX_DWT_LEVELS][4];
     int custom_quant_matrix;
 
     /* Division LUT */
-- 
2.49.0



More information about the ffmpeg-devel mailing list