Ignore:
Timestamp:
Mar 30, 2012 6:46:48 AM (12 years ago)
Author:
nanang
Message:

Misc (re #1446): Avoid unnecessary high latency caused by clock drift or call setup lag by overriding initial framerate setting to be 1.5x higher in video stream decoding direction. Note that a previous method in r3972 has just been cancelled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c

    r3982 r3998  
    13931393                           vfd_enc->fps.denum / vfd_enc->fps.num; 
    13941394 
     1395    /* Override the initial framerate in the decoding direction. This initial 
     1396     * value will be used by the renderer to configure its clock, and setting 
     1397     * it to a bit higher value can avoid the possibility of high latency 
     1398     * caused by clock drift (remote encoder clock runs slightly faster than 
     1399     * local renderer clock) or video setup lag. Note that the actual framerate 
     1400     * will be continuously calculated based on the incoming RTP timestamps. 
     1401     */ 
     1402    vfd_dec->fps.num = vfd_dec->fps.num * 3 / 2; 
     1403 
    13951404    /* Create decoder channel */ 
    13961405    status = create_channel( pool, stream, PJMEDIA_DIR_DECODING,  
Note: See TracChangeset for help on using the changeset viewer.