summaryrefslogtreecommitdiffstats
path: root/libavcodec/libopenjpeg.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-07 01:31:02 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-16 01:26:51 +0200
commit34e36f3a1c21af25c0a96f3e3f8ef82224ce8a6e (patch)
tree3f81733bb2fff607a5990c0caa6a0411ac57fff1 /libavcodec/libopenjpeg.c
parent8b587fa29207a98c235660b3f129bac110620ec5 (diff)
downloadffmpeg-streaming-34e36f3a1c21af25c0a96f3e3f8ef82224ce8a6e.zip
ffmpeg-streaming-34e36f3a1c21af25c0a96f3e3f8ef82224ce8a6e.tar.gz
libopenjpeg: Drop const qualifier to silence compiler warning.
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 *’
Diffstat (limited to 'libavcodec/libopenjpeg.c')
-rw-r--r--libavcodec/libopenjpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenjpeg.c b/libavcodec/libopenjpeg.c
index 342dcd9..6e9e8fc 100644
--- a/libavcodec/libopenjpeg.c
+++ b/libavcodec/libopenjpeg.c
@@ -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;
OpenPOWER on IntegriCloud