shithub: opus

Download patch

ref: dabdb32ce6d33ab8998defd317e8e2813202b3d1
parent: 58042adc1943a75fd39659d090ed75c896e4d4d5
author: Jean-Marc Valin <[email protected]>
date: Mon Oct 14 09:58:51 EDT 2013

Oops, thanks to Mark Harris for spotting this!

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -762,7 +762,7 @@
 
 int opus_decode_native(OpusDecoder *st, const unsigned char *data,
       opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec,
-      int self_delimited, int *packet_offset, int soft_clip)
+      int self_delimited, opus_int32 *packet_offset, int soft_clip)
 {
    int i, nb_samples;
    int count, offset;
--- a/src/opus_private.h
+++ b/src/opus_private.h
@@ -104,7 +104,7 @@
 
 int opus_decode_native(OpusDecoder *st, const unsigned char *data, opus_int32 len,
       opus_val16 *pcm, int frame_size, int decode_fec, int self_delimited,
-      int *packet_offset, int soft_clip);
+      opus_int32 *packet_offset, int soft_clip);
 
 /* Make sure everything's aligned to sizeof(void *) bytes */
 static inline int align(int i)
@@ -115,7 +115,7 @@
 int opus_packet_parse_impl(const unsigned char *data, opus_int32 len,
       int self_delimited, unsigned char *out_toc,
       const unsigned char *frames[48], opus_int16 size[48],
-      int *payload_offset, int *opus_int32);
+      int *payload_offset, opus_int32 *packet_offset);
 
 opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen, int self_delimited);