Revision 6149cdbe

View differences:

libavcodec/msrledec.c
195 195
            }
196 196
            pos += p2;
197 197
        } else { //Run of pixels
198
            int pix[4]; //original pixel
198
            uint8_t pix[3]; //original pixel
199 199
            switch(depth){
200 200
            case  8: pix[0] = *src++;
201 201
                     break;
202 202
            case 16: pix16 = AV_RL16(src);
203 203
                     src += 2;
204
                     *(uint16_t*)pix = pix16;
205 204
                     break;
206 205
            case 24: pix[0] = *src++;
207 206
                     pix[1] = *src++;
......
209 208
                     break;
210 209
            case 32: pix32 = AV_RL32(src);
211 210
                     src += 4;
212
                     *(uint32_t*)pix = pix32;
213 211
                     break;
214 212
            }
215 213
            if (output + p1 * (depth >> 3) > output_end)

Also available in: Unified diff