C language function:MFFrameRateToAverageTimePerFrame sample codes

Search sample code in the internet.It is the result.


TITLE : obs-studio/mf-h264-encoder.cpp at master jp9000/obs-studio GitHub
MFFrameRateToAverageTimePerFrame(framerateNum, framerateDen, &sampleDur);.......
http://github.com/jp9000/obs-studio/blob/master/plugins/win-mf/mf-h264-encoder.cpp


TITLE : MFCreateVideoSampleFromSurface function (Windows)
HRESULT MFFrameRateToAverageTimePerFrame(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370467(v=vs.85).aspx
TITLE : c++ - How to add audio to an mp4 file created with a SinkWriter? - Stack Overflow
//MFFrameRateToAverageTimePerFrame(VIDEO_FPS, 1, &rtDurationVid);.......
http://stackoverflow.com/questions/42638673/how-to-add-audio-to-an-mp4-file-created-with-a-sinkwriter
TITLE : c++ - How to add audio to an mp4 file created with a SinkWriter? - Stack Overflow
MFFrameRateToAverageTimePerFrame(VIDEO_FPS, 1, &rtDurationAud); //we treat the same duration as the video.......
http://stackoverflow.com/questions/42638673/how-to-add-audio-to-an-mp4-file-created-with-a-sinkwriter
search Google

https://www.google.com/#q=MFFrameRateToAverageTimePerFrame