changeset 4168:38bb77e11353 libavcodec

zero private bits
author michael
date Fri, 10 Nov 2006 11:45:43 +0000
parents a3134db4857e
children 8d67ae8320dc
files bitstream_filter.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitstream_filter.c	Fri Nov 10 11:31:02 2006 +0000
+++ b/bitstream_filter.c	Fri Nov 10 11:45:43 2006 +0000
@@ -238,8 +238,10 @@
         if(lsf){
             FFSWAP(int, p[1], p[2]);
             header |= (p[1] & 0xC0)>>2;
+            p[1] &= 0x3F;
         }else{
             header |= p[1] & 0x30;
+            p[1] &= 0xCF;
         }
     }