Revision 1855abe5 libavcodec/fraps.c

View differences:

libavcodec/fraps.c
84 84
 * decode Fraps v2 packed plane
85 85
 */
86 86
static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
87
                               int h, uint8_t *src, int size, int Uoff)
87
                               int h, const uint8_t *src, int size, int Uoff)
88 88
{
89 89
    int i, j;
90 90
    GetBitContext gb;
......
128 128
 */
129 129
static int decode_frame(AVCodecContext *avctx,
130 130
                        void *data, int *data_size,
131
                        uint8_t *buf, int buf_size)
131
                        const uint8_t *buf, int buf_size)
132 132
{
133 133
    FrapsContext * const s = avctx->priv_data;
134 134
    AVFrame *frame = data;
......
136 136
    uint32_t header;
137 137
    unsigned int version,header_size;
138 138
    unsigned int x, y;
139
    uint32_t *buf32;
139
    const uint32_t *buf32;
140 140
    uint32_t *luma1,*luma2,*cb,*cr;
141 141
    uint32_t offs[4];
142 142
    int i, is_chroma, planes;
......
190 190
        f->key_frame = f->pict_type == FF_I_TYPE;
191 191

  
192 192
        if (f->pict_type == FF_I_TYPE) {
193
            buf32=(uint32_t*)buf;
193
            buf32=(const uint32_t*)buf;
194 194
            for(y=0; y<avctx->height/2; y++){
195 195
                luma1=(uint32_t*)&f->data[0][ y*2*f->linesize[0] ];
196 196
                luma2=(uint32_t*)&f->data[0][ (y*2+1)*f->linesize[0] ];

Also available in: Unified diff