Mercurial > libavcodec.hg
diff pnm.c @ 2864:95bac7109ff0 libavcodec
Kill some compiler warnings. Compiled code verified identical after changes.
author | mru |
---|---|
date | Tue, 06 Sep 2005 21:25:35 +0000 |
parents | b857807dfe30 |
children | ef2149182f1c |
line wrap: on
line diff
--- a/pnm.c Tue Sep 06 15:02:43 2005 +0000 +++ b/pnm.c Tue Sep 06 21:25:35 2005 +0000 @@ -473,8 +473,8 @@ pnmctx.bytestream_end= pc->buffer + pc->index; }else{ pnmctx.bytestream_start= - pnmctx.bytestream= buf; - pnmctx.bytestream_end= buf + buf_size; + pnmctx.bytestream= (uint8_t *) buf; /* casts avoid warnings */ + pnmctx.bytestream_end= (uint8_t *) buf + buf_size; } if(pnm_decode_header(avctx, &pnmctx) < 0){ if(pnmctx.bytestream < pnmctx.bytestream_end){