Ignore:
Timestamp:
Apr 9, 2015 8:15:48 AM (4 years ago)
Author:
nanang
Message:

Re #1794:

  • Updated G7221, the bitrate can also be set via param.info.avg_bps, this is applicable only when param.setting.dec_fmtp doesn't contain bitrate info.
  • Fixed failing codec vector test in pjmedia-test due to wrong G7221 bitrate setting.
File:
1 edited

Legend:

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

    r4987 r5058  
    679679    } 
    680680 
    681     /* Validation mode first! */ 
     681    if (fmtp_bitrate == 0) 
     682        fmtp_bitrate = attr->info.avg_bps; 
     683 
     684    /* Validate bitrate */ 
    682685    if (!fmtp_bitrate || !validate_mode(attr->info.clock_rate, fmtp_bitrate)) 
    683686        return PJMEDIA_CODEC_EINMODE; 
Note: See TracChangeset for help on using the changeset viewer.