Improve the usage of the LibAvContextHandle to new pixel formats

This commit is contained in:
jfmcarreira committed 2014-06-26 01:57:55 +01:00
1 parent e5e9971f39
commit 947f7ed80a
2 files changed
+28 -13

No files matched your search

+1
View File
@@ -194,6 +194,7 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height
m_uiSecs = duration / AV_TIME_BASE;
num_frames = m_uiSecs * frame_rate;
m_uiMicroSec = duration % AV_TIME_BASE;
num_frames = num_frames == 0 ? 1 : num_frames;
}
else
{