Ignore:
Timestamp:
Oct 6, 2008 6:42:13 PM (16 years ago)
Author:
nanang
Message:

Fixed G.722 codec that is suppossed to work with 14 bits PCM for its input & output (thanks Olle Frimanson for the report).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/g722/g722_dec.c

    r1870 r2342  
    530530 
    531531        rx_qmf(dec, rlow, rhigh, &pcm1, &pcm2); 
    532         out[i*2] = (pj_int16_t)pcm1; 
    533         out[i*2+1] = (pj_int16_t)pcm2; 
     532        out[i*2] = (pj_int16_t)(pcm1 << 2); 
     533        out[i*2+1] = (pj_int16_t)(pcm2 << 2); 
    534534    } 
    535535 
Note: See TracChangeset for help on using the changeset viewer.