Bugfix: extract extension using the last part after the last .
This commit is contained in:
1 parent
de36bca75d
commit
17e3e3aa7d
1 file changed
+1
-1
@@ -131,7 +131,7 @@ Bool InputStream::open( QString filename, UInt width, UInt height, Int input_for
|
||||
m_iPixelFormat = input_format;
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
if( QFileInfo( filename ).completeSuffix().compare( QString( "yuv" ) ) )
|
||||
if( QFileInfo( filename ).suffix().compare( QString( "yuv" ) ) )
|
||||
{
|
||||
avStatus = m_cLibAvContext.initAvFormat( m_cFilename.toLocal8Bit().data(), m_uiWidth, m_uiHeight, m_iPixelFormat, m_uiFrameRate, m_uiTotalFrameNum );
|
||||
m_cFormatName = QFileInfo( filename ).completeSuffix().toUpper();
|
||||
|
||||
Reference in new issue
Block a user