diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-08-30 19:31:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-08-30 19:31:49 +0000 |
commit | dc98fc8d170d7ad072eb87e2fdd546f2bc09ccb4 (patch) | |
tree | 4d539c3d95e30f06af3ab63250aea9ccbfe07eff /libavcodec | |
parent | d9a916e22168129efb90c22aa04449533d62d120 (diff) | |
download | ffmpeg-dc98fc8d170d7ad072eb87e2fdd546f2bc09ccb4.tar.gz |
10l (big vs. little endian)
Originally committed as revision 2184 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 5416ad963c..c2acf47777 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -189,9 +189,9 @@ static int decode_frame(AVCodecContext *avctx, 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); - for(i=0; 2*i<buf_size; i+=2){ - ((uint16_t*)a->bitstream_buffer)[i] = ((uint16_t*)buf)[i+1]; - ((uint16_t*)a->bitstream_buffer)[i+1]= ((uint16_t*)buf)[i ]; + for(i=0; i<buf_size; i+=2){ + a->bitstream_buffer[i] = buf[i+1]; + a->bitstream_buffer[i+1]= buf[i ]; } // 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); |