[FFmpeg-cvslog] libspeexdec: Drop const qualifier to silence compiler warning.

Diego Biurrun git at videolan.org
Sat Jul 16 19:49:08 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jul  7 01:31:03 2011 +0200| [0523dc57ffd0032b572392b1acc353db651eb23f] | committer: Diego Biurrun

libspeexdec: Drop const qualifier to silence compiler warning.

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 *’

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0523dc57ffd0032b572392b1acc353db651eb23f
---

 libavcodec/libspeexdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index e6626dc..1cee71e 100644
--- a/libavcodec/libspeexdec.c
+++ b/libavcodec/libspeexdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list