Revision 79396ac6 libavcodec/pnm.c

View differences:

libavcodec/pnm.c
473 473
        pnmctx.bytestream_end= pc->buffer + pc->index;
474 474
    }else{
475 475
        pnmctx.bytestream_start=
476
        pnmctx.bytestream= buf;
477
        pnmctx.bytestream_end= buf + buf_size;
476
        pnmctx.bytestream= (uint8_t *) buf; /* casts avoid warnings */
477
        pnmctx.bytestream_end= (uint8_t *) buf + buf_size;
478 478
    }
479 479
    if(pnm_decode_header(avctx, &pnmctx) < 0){
480 480
        if(pnmctx.bytestream < pnmctx.bytestream_end){

Also available in: Unified diff