aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2005-09-06 21:25:35 +0000
committerMåns Rullgård <mans@mansr.com>2005-09-06 21:25:35 +0000
commit79396ac68573628f3b59142601db86a0f4ba7ad5 (patch)
tree4dfa0ec8e3e2e4ae1e1a5508ef8b311892ecf6ff /libavcodec/pnm.c
parentb40e353aa49737da9501b092d18011c79def8e30 (diff)
downloadffmpeg-79396ac68573628f3b59142601db86a0f4ba7ad5.tar.gz
Kill some compiler warnings. Compiled code verified identical after changes.
Originally committed as revision 4567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r--libavcodec/pnm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index aae798bcaa..1df6184336 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -473,8 +473,8 @@ retry:
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){