changeset 1431:e2f288bcfaa4 libavcodec

10l (big vs. little endian)
author michaelni
date Sat, 30 Aug 2003 19:31:49 +0000
parents 248d9ae1033c
children 7406ed4479f7
files mdec.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mdec.c	Fri Aug 29 19:42:23 2003 +0000
+++ b/mdec.c	Sat Aug 30 19:31:49 2003 +0000
@@ -189,9 +189,9 @@
     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);