Improve the usage of the LibAvContextHandle to new pixel formats
This commit is contained in:
1 parent
e5e9971f39
commit
947f7ed80a
2 files changed
+28
-13
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user