Changeset 377:08275ffdec76 in mediastreamer2
- Timestamp:
- Mar 28, 2009 4:38:04 PM (4 years ago)
- Branch:
- default
- Location:
- linphone/mediastreamer2/src
- Files:
-
- 2 edited
-
videostream.c (modified) (2 diffs)
-
winvideo2.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linphone/mediastreamer2/src/videostream.c
r242 r377 129 129 float flost; 130 130 ij=report_block_get_interarrival_jitter(rb); 131 flost= 100.0*report_block_get_fraction_lost(rb)/256.0;131 flost=(float)(100.0*report_block_get_fraction_lost(rb)/256.0); 132 132 ms_message("interarrival jitter=%u , lost packets percentage since last report=%f ",ij,flost); 133 133 if (stream->adapt_bitrate) video_stream_adapt_bitrate(stream,ij,flost); … … 361 361 MSVideoSize vsize=disp_size; 362 362 MSPixFmt format; 363 float fps= 29.97;363 float fps=(float)29.97; 364 364 int mirroring=1; 365 365 -
linphone/mediastreamer2/src/winvideo2.c
r205 r377 367 367 368 368 if (s->frame_count==-1){ 369 s->start_time= obj->ticker->time;369 s->start_time=(float)obj->ticker->time; 370 370 s->frame_count=0; 371 371 } 372 372 373 cur_frame=( (obj->ticker->time-s->start_time)*s->fps/1000.0);373 cur_frame=(int)((obj->ticker->time-s->start_time)*s->fps/1000.0); 374 374 if (cur_frame>s->frame_count){ 375 375 mblk_t *om=NULL; … … 386 386 } 387 387 if (om!=NULL){ 388 timestamp= obj->ticker->time*90;/* rtp uses a 90000 Hz clockrate for video*/388 timestamp=(uint32_t)(obj->ticker->time*90);/* rtp uses a 90000 Hz clockrate for video*/ 389 389 mblk_set_timestamp_info(om,timestamp); 390 390 ms_queue_put(obj->outputs[0],om);
Note: See TracChangeset
for help on using the changeset viewer.
