Changeset 4029


Ignore:
Timestamp:
Apr 5, 2012 8:53:48 AM (8 years ago)
Author:
ming
Message:

Re #1472: Fixed wrong calculation in clock rate adjustment

File:
1 edited

Legend:

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

    r4026 r4029  
    706706 
    707707    if (vp->stream_role == ROLE_PASSIVE) { 
    708         while (vp->conv.usec_ctr < vp->conv.usec_src) { 
     708        while (vp->conv.usec_ctr < vp->conv.usec_dst) { 
    709709            vp->frm_buf->size = vp->frm_buf_size; 
    710710            status = pjmedia_vid_dev_stream_get_frame(vp->strm, vp->frm_buf); 
    711             vp->conv.usec_ctr += vp->conv.usec_dst; 
     711            vp->conv.usec_ctr += vp->conv.usec_src; 
    712712        } 
    713         vp->conv.usec_ctr -= vp->conv.usec_src; 
     713        vp->conv.usec_ctr -= vp->conv.usec_dst; 
    714714        if (status != PJ_SUCCESS) 
    715715            return; 
Note: See TracChangeset for help on using the changeset viewer.