Ignore:
Timestamp:
Mar 17, 2011 11:25:19 AM (14 years ago)
Author:
bennylp
Message:

Re #1213 (video devices):

  • fixed devices to correctly increment the frame timestamp
  • minor fix in video port to set default "active" value to 1 in the param
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/v4l2_dev.c

    r3447 r3459  
    677677    frame->type = PJMEDIA_FRAME_TYPE_VIDEO; 
    678678    frame->size = buf.bytesused; 
    679     frame->timestamp.u64 = PJ_TIME_VAL_MSEC(time) * stream->param.clock_rate 
    680                            / PJ_UINT64(1000); 
     679    frame->timestamp.u64 = PJ_UINT64(1) * PJ_TIME_VAL_MSEC(time) * 
     680                           stream->param.clock_rate / PJ_UINT64(1000); 
    681681    pj_memcpy(frame->buf, stream->buffers[buf.index].start, buf.bytesused); 
    682682 
Note: See TracChangeset for help on using the changeset viewer.