Skip to content

Commit 2ad8669

Browse files
author
Timothy B. Terriberry
committed
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.
1 parent fe1ab28 commit 2ad8669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opus_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ int opus_dred_decoder_ctl(OpusDREDDecoder *dred_dec, int request, ...)
12971297
static int dred_find_payload(const unsigned char *data, opus_int32 len, const unsigned char **payload, int *dred_frame_offset)
12981298
{
12991299
const unsigned char *data0;
1300-
int len0;
1300+
opus_int32 len0;
13011301
int frame = 0;
13021302
int nb_frames;
13031303
const unsigned char *frames[48];

0 commit comments

Comments
 (0)