aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-07 01:31:01 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-07 15:21:22 +0200
commit357d0d8fc787ea5d6ca8ba0839f94493604208a3 (patch)
treedb501dec8257a77964e0a0f3f66f2fd268a6f6ad
parent6e4ca0749c2e6434e071dbd314076613fb3ef59b (diff)
downloadffmpeg-357d0d8fc787ea5d6ca8ba0839f94493604208a3.tar.gz
libgsm: Drop const qualifier to silence compiler warning.
libavcodec/libgsm.c:148: warning: passing argument 2 of ‘gsm_decode’ discards qualifiers from pointer target type /usr/include/gsm/gsm.h:68: note: expected ‘gsm_byte *’ but argument is of type ‘const uint8_t *’
-rw-r--r--libavcodec/libgsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 34f29573db..0573cb33d6 100644
--- a/libavcodec/libgsm.c
+++ b/libavcodec/libgsm.c
@@ -139,7 +139,7 @@ AVCodec ff_libgsm_ms_encoder = {
static int libgsm_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;
*data_size = 0; /* In case of error */
if(buf_size < avctx->block_align) return -1;