From 17e3e3aa7d784371f21124cd65d8168582f7d0b4 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 12 Jun 2014 10:39:13 +0100 Subject: [PATCH] Bugfix: extract extension using the last part after the last . --- source/app/InputStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/InputStream.cpp b/source/app/InputStream.cpp index f95226c..1a0adc2 100755 --- a/source/app/InputStream.cpp +++ b/source/app/InputStream.cpp @@ -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();