shithub: opus

Download patch

ref: 2ad8669960721cb259e4e28c8e091ffe73a864a0
parent: fe1ab2893ef3619b4a63b69a1608ba54ac49efad
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Wed Jul 24 11:58:00 EDT 2024

Fix type passed to opus_packet_parse_impl().

The function takes an opus_int32 *, but we were passing the address
 of an int, which might not be the same.
This is only likely to affect platforms with a 16-bit int.

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -1297,7 +1297,7 @@
 static int dred_find_payload(const unsigned char *data, opus_int32 len, const unsigned char **payload, int *dred_frame_offset)
 {
    const unsigned char *data0;
-   int len0;
+   opus_int32 len0;
    int frame = 0;
    int nb_frames;
    const unsigned char *frames[48];
--