Revision dc98fc8d

View differences:

libavcodec/mdec.c
189 189
    a->last_dc[2]= 0;
190 190

  
191 191
    a->bitstream_buffer= av_fast_realloc(a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
192
    for(i=0; 2*i<buf_size; i+=2){
193
        ((uint16_t*)a->bitstream_buffer)[i]  = ((uint16_t*)buf)[i+1];
194
        ((uint16_t*)a->bitstream_buffer)[i+1]= ((uint16_t*)buf)[i  ];
192
    for(i=0; i<buf_size; i+=2){
193
        a->bitstream_buffer[i]  = buf[i+1];
194
        a->bitstream_buffer[i+1]= buf[i  ];
195 195
    }
196 196
//    a->dsp.bswap_buf((uint32_t*)a->bitstream_buffer, (uint32_t*)buf, buf_size/4);
197 197
    init_get_bits(&a->gb, a->bitstream_buffer, buf_size*8);

Also available in: Unified diff