changeset 1802:e91dbb5b1a8d libavcodec

activate the memcpy special case for the byte aligned case in ff_copy_bits(), wasnt working before because of a incorrectly used pbBufPtr()
author michael
date Fri, 13 Feb 2004 21:07:31 +0000
parents 3f26dfb3eba4
children f100993b9b5a
files mpegvideo.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Fri Feb 13 20:59:48 2004 +0000
+++ b/mpegvideo.c	Fri Feb 13 21:07:31 2004 +0000
@@ -3738,13 +3738,13 @@
 
     if(length==0) return;
     
-//    if(put_bits_count(pb)&7){ //FIXME
+    if(put_bits_count(pb)&7){
         for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(((uint16_t*)src)[i]));
-/*    }else{
+    }else{
         flush_put_bits(pb);
         memcpy(pbBufPtr(pb), src, 2*words);
         skip_put_bytes(pb, 2*words);
-    }*/
+    }
         
     put_bits(pb, bits, be2me_16(((uint16_t*)src)[words])>>(16-bits));
 }