Commit 07cdd394 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 28e88a24
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment