Changeset 49

Show
Ignore:
Timestamp:
05/08/07 21:40:54 (3 years ago)
Author:
gbooker
Message:

Seems this downmix was neglecting the bias. Cause clipping. Wonder if the HB people know about this, or maybe they just don't use bias.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/liba52/liba52/downmix.c

    r43 r49  
    416416                        Rss = -(LEVEL_SQRT_1_2 * Ls) + (LEVEL_SQRT_3_4 * Rs); 
    417417                         
    418                         samples[i] = Lt + Lss; 
    419                         samples[i + 256] = Rt + Rss; 
     418                        samples[i] = bias + Lt + Lss; 
     419                        samples[i + 256] = bias + Rt + Rss; 
    420420                } 
    421421        } else { 
     
    464464                        Rss = -(LEVEL_SQRT_1_2 * Ls) + (LEVEL_SQRT_3_4 * Rs); 
    465465                 
    466                         samples[i] = Lt + Lss; 
    467                         samples[i + 256] = Rt + Rss; 
     466                        samples[i] = bias + Lt + Lss; 
     467                        samples[i + 256] = bias + Rt + Rss; 
    468468         
    469469                }