audio/hwopus-decoder: fix offset for pointer to wavebuf start

This commit is contained in:
Kripesh Adhikari 2024-10-26 12:43:13 +05:45 committed by GitHub
parent 5e36dc2902
commit 1687bc5b02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,7 +206,7 @@ int main(void)
}
if (wavei >= 0) {
curbuf = (opus_int16*)(mempool_ptr + wavebuf[wavei].start_sample_offset);
curbuf = (opus_int16*)(mempool_ptr + wavebuf[wavei].start_sample_offset * sizeof(opus_int16));
opret = op_read(of, tmpdata_ptr, max_samples * num_channels, NULL);//The buffer used here has to be seperate from mempool_ptr.
if (opret < 0)