I use the following call to get the duration of one video to be decoded. The debug version of my MS VS 2008 compiler does not have any problems to get the correct duration of the loaded video. The release version has some problems to get from every video the correct duration. Sometimes the duration is 0 instead of 3-5s or seems to be shorter than the given value of 30-60s from the video. I wonder why there is a difference between the debug and release one. I use the IPP 7-0-2 in my software.
Can I use other stream parameters to check the duration or to calculate the correct one? Do I have to wait for a certain state so that I know that the duration parameter is correct now?
if(m_videostreaminfo.duration > 0)
// UMC::VideoStreamInfo CVideoItem::m_videostreaminfo
// Ipp64f UMC::sVideoStreamInfo::duration
elseif(m_pSplInfo != 0L)
// UMC::SplitterInfo *CVideoItem::m_pSplInfo
// Ipp64f UMC::SplitterInfo::m_dDuration