Changeset 3165 for pjproject


Ignore:
Timestamp:
May 11, 2010 6:33:55 AM (15 years ago)
Author:
nanang
Message:

Re #1068:

  • Fixed max frames-per-packet constants in AMR codec (IPP and passthrough) to be based on PJMEDIA_MAX_FRAME_DURATION_MS setting.
Location:
pjproject/trunk/pjmedia/src/pjmedia-codec
Files:
2 edited

Legend:

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

    r3078 r3165  
    496496                            pj_size_t *pkt_size, pj_size_t max_pkt_size) 
    497497{ 
    498     enum {MAX_FRAMES_PER_PACKET = 16}; 
     498    enum {MAX_FRAMES_PER_PACKET = PJMEDIA_MAX_FRAME_DURATION_MS / 20}; 
    499499 
    500500    pjmedia_frame frames[MAX_FRAMES_PER_PACKET]; 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c

    r3100 r3165  
    235235                              struct pjmedia_frame *output) 
    236236{ 
    237     enum {MAX_FRAMES_PER_PACKET = 8}; 
     237    enum {MAX_FRAMES_PER_PACKET = PJMEDIA_MAX_FRAME_DURATION_MS / 20}; 
    238238 
    239239    pjmedia_frame frames[MAX_FRAMES_PER_PACKET]; 
Note: See TracChangeset for help on using the changeset viewer.