pnmdec: use explicit casts to remove const to avoid warning with clang
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Sep 2012 02:51:47 +0000 (04:51 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Sep 2012 02:51:47 +0000 (04:51 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pnmdec.c

index 13d5763..c6dfa2c 100644 (file)
@@ -37,8 +37,8 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data,
     int components, sample_len;
 
     s->bytestream_start =
-    s->bytestream       = buf;
-    s->bytestream_end   = buf + buf_size;
+    s->bytestream       = (uint8_t *)buf;
+    s->bytestream_end   = (uint8_t *)buf + buf_size;
 
     if (ff_pnm_decode_header(avctx, s) < 0)
         return -1;