Browse Source

avcodec/jpeglsdec: add cast to silence pointer type warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
0a5cc20d4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/jpeglsdec.c

+ 1
- 1
libavcodec/jpeglsdec.c View File

@@ -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) && 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)) { (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->picture_ptr->format =
s->avctx->pix_fmt = AV_PIX_FMT_PAL8; s->avctx->pix_fmt = AV_PIX_FMT_PAL8;
for (i=s->palette_index; i<=maxtab; i++) { for (i=s->palette_index; i<=maxtab; i++) {


Loading…
Cancel
Save