shithub: opus-tools

Download patch

ref: a4de0252a75ea45868755d2e88b1a512ff6e073f
parent: f440ba784818d3cbc5eb607eaceb1d27597f1175
author: Ralph Giles <giles@mozilla.com>
date: Fri Aug 31 19:54:31 EDT 2012

Cast away a const warning.

--- a/src/opusrtp.c
+++ b/src/opusrtp.c
@@ -109,7 +109,7 @@
   return op;
 }
 
-ogg_packet *op_from_pkt(unsigned char *pkt, int len)
+ogg_packet *op_from_pkt(const unsigned char *pkt, int len)
 {
   ogg_packet *op = malloc(sizeof(*op));
   if (!op) {
@@ -117,7 +117,7 @@
     return NULL;
   }
 
-  op->packet = pkt;
+  op->packet = (unsigned char *)pkt;
   op->bytes = len;
   op->b_o_s = 0;
   op->e_o_s = 0;