[FFmpeg-cvslog] pnmdec: use explicit casts to remove const to avoid warning with clang

Michael Niedermayer git at videolan.org
Sat Sep 22 04:57:34 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 22 04:51:47 2012 +0200| [07cdd394782b59ba97298100f25bac30399695dd] | committer: Michael Niedermayer

pnmdec: use explicit casts to remove const to avoid warning with clang

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=07cdd394782b59ba97298100f25bac30399695dd
---

 libavcodec/pnmdec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
index 13d5763..c6dfa2c 100644
--- a/libavcodec/pnmdec.c
+++ b/libavcodec/pnmdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list