Ignore:
Timestamp:
Aug 27, 2008 1:15:25 PM (16 years ago)
Author:
nanang
Message:

Ticket #583: fixed bug on setting frametype in encode() related to special treatment for G729.

File:
1 edited

Legend:

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

    r2236 r2249  
    966966 
    967967#if PJMEDIA_HAS_INTEL_IPP_CODEC_G729 
    968         if (out.frametype == 1) { 
    969             /* SID */ 
    970             break; 
    971         } else if (out.frametype == 0) { 
    972             /* Untransmitted */ 
    973             tx -= out.nbytes; 
    974             break; 
     968        if (pt == PJMEDIA_RTP_PT_G729) { 
     969            if (out.frametype == 1) { 
     970                /* SID */ 
     971                break; 
     972            } else if (out.frametype == 0) { 
     973                /* Untransmitted */ 
     974                tx -= out.nbytes; 
     975                break; 
     976            } 
    975977        } 
    976978#endif 
Note: See TracChangeset for help on using the changeset viewer.