diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-03 22:54:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-03 22:54:01 +0200 |
commit | 0a5cc20d4aace91fdc8c56149bfee1efb726da8c (patch) | |
tree | 5aae1cfd22e53e7a82c84ceb8288e05b01280dd5 /libavcodec/jpeglsdec.c | |
parent | 6b79ef00fdac510f77ec983a7500b576f8efaa8e (diff) | |
download | ffmpeg-0a5cc20d4aace91fdc8c56149bfee1efb726da8c.tar.gz |
avcodec/jpeglsdec: add cast to silence pointer type warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeglsdec.c')
-rw-r--r-- | libavcodec/jpeglsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index add7200fc1..fb3762dad0 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -109,7 +109,7 @@ int ff_jpegls_decode_lse(MJpegDecodeContext *s) if ((s->avctx->pix_fmt == AV_PIX_FMT_GRAY8 || s->avctx->pix_fmt == AV_PIX_FMT_PAL8) && (s->picture_ptr->format == AV_PIX_FMT_GRAY8 || s->picture_ptr->format == AV_PIX_FMT_PAL8)) { - uint32_t *pal = s->picture_ptr->data[1]; + uint32_t *pal = (uint32_t *)s->picture_ptr->data[1]; s->picture_ptr->format = s->avctx->pix_fmt = AV_PIX_FMT_PAL8; for (i=s->palette_index; i<=maxtab; i++) { |