comparison bitstream_filter.c @ 4168:38bb77e11353 libavcodec

zero private bits
author michael
date Fri, 10 Nov 2006 11:45:43 +0000
parents a3134db4857e
children 05e932ddaaa9
comparison
equal deleted inserted replaced
4167:a3134db4857e 4168:38bb77e11353
236 if(avctx->channels==2){ 236 if(avctx->channels==2){
237 uint8_t *p= *poutbuf + frame_size - buf_size; 237 uint8_t *p= *poutbuf + frame_size - buf_size;
238 if(lsf){ 238 if(lsf){
239 FFSWAP(int, p[1], p[2]); 239 FFSWAP(int, p[1], p[2]);
240 header |= (p[1] & 0xC0)>>2; 240 header |= (p[1] & 0xC0)>>2;
241 p[1] &= 0x3F;
241 }else{ 242 }else{
242 header |= p[1] & 0x30; 243 header |= p[1] & 0x30;
244 p[1] &= 0xCF;
243 } 245 }
244 } 246 }
245 247
246 (*poutbuf)[0]= header>>24; 248 (*poutbuf)[0]= header>>24;
247 (*poutbuf)[1]= header>>16; 249 (*poutbuf)[1]= header>>16;