comparison huffyuv.c @ 6234:5d82b4e8a7f3 libavcodec

const
author michael
date Fri, 01 Feb 2008 04:14:04 +0000
parents defae3a747d9
children 48759bfbd073
comparison
equal deleted inserted replaced
6233:bfb9d5c104a1 6234:5d82b4e8a7f3
957 s->avctx->draw_horiz_band(s->avctx, &s->picture, offset, y, 3, h); 957 s->avctx->draw_horiz_band(s->avctx, &s->picture, offset, y, 3, h);
958 958
959 s->last_slice_end= y + h; 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 HYuvContext *s = avctx->priv_data; 963 HYuvContext *s = avctx->priv_data;
964 const int width= s->width; 964 const int width= s->width;
965 const int width2= s->width>>1; 965 const int width2= s->width>>1;
966 const int height= s->height; 966 const int height= s->height;
967 int fake_ystride, fake_ustride, fake_vstride; 967 int fake_ystride, fake_ustride, fake_vstride;
970 970
971 AVFrame *picture = data; 971 AVFrame *picture = data;
972 972
973 s->bitstream_buffer= av_fast_realloc(s->bitstream_buffer, &s->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); 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 if(p->data[0]) 977 if(p->data[0])
978 avctx->release_buffer(avctx, p); 978 avctx->release_buffer(avctx, p);
979 979
980 p->reference= 0; 980 p->reference= 0;