[FFmpeg-cvslog] libgsm: Drop const qualifier to silence compiler warning.
Diego Biurrun
git at videolan.org
Fri Jul 8 01:17:04 CEST 2011
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jul 7 01:31:01 2011 +0200| [357d0d8fc787ea5d6ca8ba0839f94493604208a3] | committer: Diego Biurrun
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 *’
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=357d0d8fc787ea5d6ca8ba0839f94493604208a3
---
libavcodec/libgsm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 34f2957..0573cb3 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;
More information about the ffmpeg-cvslog
mailing list