libopenjpeg: Drop const qualifier to silence compiler warning.
authorDiego Biurrun <diego@biurrun.de>
Wed, 6 Jul 2011 23:31:02 +0000 (01:31 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 15 Jul 2011 23:26:51 +0000 (01:26 +0200)
libavcodec/libopenjpeg.c:100: warning: passing argument 2 of ‘opj_cio_open’ discards qualifiers from pointer target type
/usr/include/openjpeg.h:770: note: expected ‘unsigned char *’ but argument is of type ‘const uint8_t *’

libavcodec/libopenjpeg.c

index 342dcd9..6e9e8fc 100644 (file)
@@ -61,7 +61,7 @@ static int libopenjpeg_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;
     LibOpenJPEGContext *ctx = avctx->priv_data;
     AVFrame *picture = &ctx->image, *output = data;