Commit cc64052c authored by michaelni's avatar michaelni

10l (big vs. little endian)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2184 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0f4bcfd3
...@@ -189,9 +189,9 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -189,9 +189,9 @@ static int decode_frame(AVCodecContext *avctx,
a->last_dc[2]= 0; a->last_dc[2]= 0;
a->bitstream_buffer= av_fast_realloc(a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); a->bitstream_buffer= av_fast_realloc(a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
for(i=0; 2*i<buf_size; i+=2){ for(i=0; i<buf_size; i+=2){
((uint16_t*)a->bitstream_buffer)[i] = ((uint16_t*)buf)[i+1]; a->bitstream_buffer[i] = buf[i+1];
((uint16_t*)a->bitstream_buffer)[i+1]= ((uint16_t*)buf)[i ]; a->bitstream_buffer[i+1]= buf[i ];
} }
// a->dsp.bswap_buf((uint32_t*)a->bitstream_buffer, (uint32_t*)buf, buf_size/4); // a->dsp.bswap_buf((uint32_t*)a->bitstream_buffer, (uint32_t*)buf, buf_size/4);
init_get_bits(&a->gb, a->bitstream_buffer, buf_size*8); init_get_bits(&a->gb, a->bitstream_buffer, buf_size*8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment