Revision 6291b208

View differences:

chunker_streamer/chunker_streamer.c
805 805
					}
806 806
					//compute the new video timestamp in milliseconds
807 807
					if(frame->number>0) {
808
						newTime = ((double)target_pts-ptsvideo1)*1000.0/((double)delta_video*(double)av_q2d(pFormatCtx->streams[videoStream]->r_frame_rate));
808
						newTime = (target_pts - ptsvideo1) * 1000 * pFormatCtx->streams[videoStream]->time_base.num / pFormatCtx->streams[videoStream]->time_base.den;
809 809
						// store timestamp in useconds for next frame sleep
810 810
						newTime_video = newTime*1000;
811 811
					}

Also available in: Unified diff