aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pnmdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-22 04:51:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-22 04:51:47 +0200
commit07cdd394782b59ba97298100f25bac30399695dd (patch)
treef4811ba3d19ad2ddfa8bac9a03946616abb4a9fc /libavcodec/pnmdec.c
parent28e88a24f6273969efa655102e5bc420f08535b0 (diff)
downloadffmpeg-07cdd394782b59ba97298100f25bac30399695dd.tar.gz
pnmdec: use explicit casts to remove const to avoid warning with clang
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pnmdec.c')
-rw-r--r--libavcodec/pnmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
index 13d5763b54..c6dfa2c79e 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;