From 103aefc8e4b51ec749a4cb39f4ec5e8dd329ef3f Mon Sep 17 00:00:00 2001 From: 1Codealot <58225804+1Codealot@users.noreply.github.com> Date: Wed, 10 Jan 2024 19:19:03 +0000 Subject: [PATCH] Fixed the warning! --- src/external/qoa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/qoa.h b/src/external/qoa.h index fc62f4765..0cf7f963b 100644 --- a/src/external/qoa.h +++ b/src/external/qoa.h @@ -408,7 +408,7 @@ unsigned int qoa_encode_frame(const short *sample_data, qoa_desc *qoa, unsigned qoa_uint64_t best_error = -1; qoa_uint64_t best_slice; qoa_lms_t best_lms; - int best_scalefactor; + int best_scalefactor = sfi + prev_scalefactor[c] % 16; /*stolen from 6 lines below*/ for (int sfi = 0; sfi < 16; sfi++) { /* There is a strong correlation between the scalefactors of