Commit 34e36f3a authored by Diego Biurrun's avatar Diego Biurrun
Browse files

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 *’
parent 8b587fa2
...@@ -61,7 +61,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx, ...@@ -61,7 +61,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
void *data, int *data_size, void *data, int *data_size,
AVPacket *avpkt) AVPacket *avpkt)
{ {
const uint8_t *buf = avpkt->data; uint8_t *buf = avpkt->data;
int buf_size = avpkt->size; int buf_size = avpkt->size;
LibOpenJPEGContext *ctx = avctx->priv_data; LibOpenJPEGContext *ctx = avctx->priv_data;
AVFrame *picture = &ctx->image, *output = data; AVFrame *picture = &ctx->image, *output = data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment