[FFmpeg-cvslog] libopenjpeg: Drop const qualifier to silence compiler warning.
Diego Biurrun
git at videolan.org
Sat Jul 16 19:49:08 CEST 2011
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jul 7 01:31:02 2011 +0200| [34e36f3a1c21af25c0a96f3e3f8ef82224ce8a6e] | committer: Diego Biurrun
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 *’
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34e36f3a1c21af25c0a96f3e3f8ef82224ce8a6e
---
libavcodec/libopenjpeg.c | 2 +-
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;
More information about the ffmpeg-cvslog
mailing list