Browse Source

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 *’
tags/n0.9
Diego Biurrun 14 years ago
parent
commit
34e36f3a1c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libopenjpeg.c

+ 1
- 1
libavcodec/libopenjpeg.c View 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;


Loading…
Cancel
Save