Revision fb2cf1bc libavcodec/huffyuv.c

View differences:

libavcodec/huffyuv.c
959 959
    s->last_slice_end= y + h;
960 960
}
961 961

  
962
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size){
962
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size){
963 963
    HYuvContext *s = avctx->priv_data;
964 964
    const int width= s->width;
965 965
    const int width2= s->width>>1;
......
972 972

  
973 973
    s->bitstream_buffer= av_fast_realloc(s->bitstream_buffer, &s->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
974 974

  
975
    s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (uint32_t*)buf, buf_size/4);
975
    s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (const uint32_t*)buf, buf_size/4);
976 976

  
977 977
    if(p->data[0])
978 978
        avctx->release_buffer(avctx, p);

Also available in: Unified diff