]> git.sesse.net Git - ffmpeg/commitdiff
libspeexdec: Drop const qualifier to silence compiler warning.
authorDiego Biurrun <diego@biurrun.de>
Wed, 6 Jul 2011 23:31:03 +0000 (01:31 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 15 Jul 2011 23:26:51 +0000 (01:26 +0200)
libavcodec/libspeexdec.c:108: warning: passing argument 2 of ‘speex_bits_read_from’ discards qualifiers from pointer target type
/usr/include/speex/speex_bits.h:80: note: expected ‘char *’ but argument is of type ‘const uint8_t *’

libavcodec/libspeexdec.c

index e6626dc88b28d4f6bff8352180940e3925ffc65b..1cee71e152da7d79ac1464f9117821a5a0834f9f 100644 (file)
@@ -96,7 +96,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx,
                                  void *data, int *data_size,
                                  AVPacket *avpkt)
 {
-    const uint8_t *buf = avpkt->data;
+    uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     LibSpeexContext *s = avctx->priv_data;
     int16_t *output = data, *end;