• Martin Storsjö's avatar
    g722: Fix the QMF scaling · b087ce2b
    Martin Storsjö authored
    
    
    This fixes clipping if the encoder input used the full 16 bit
    input range (samples with a magnitude below 16383 worked fine).
    The filtered subband samples should be 15 bit maximum, while
    the code earlier produced them scaled to 16 bit.
    
    This makes the decoder output have double the magnitude
    compared to before.
    
    The spec reference samples doesn't test the QMF at all, which
    was why this part slipped past initially.
    
    Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
    b087ce2b