Fix guessing endian

This commit is contained in:
jfmcarreira committed 2017-01-10 17:15:23 +00:00
1 parent 9091719dc9
commit c8d7fb1c43
1 file changed
+6 -9
+6 -9
View File
@@ -538,16 +538,13 @@ Bool VideoSubWindow::guessFormat( QString filename, UInt& rWidth, UInt& rHeight,
#endif
// Guess Endianness
if( rEndianness == -1 )
if( FilenameShort.contains( QStringLiteral( "be" ), Qt::CaseInsensitive ) )
{
if( FilenameShort.contains( QStringLiteral( "be" ), Qt::CaseInsensitive ) )
{
rEndianness = PLAYUVER_BIG_ENDIAN;
}
if( FilenameShort.contains( QStringLiteral( "le" ), Qt::CaseInsensitive ) )
{
rEndianness = PLAYUVER_LITTLE_ENDIAN;
}
rEndianness = PLAYUVER_BIG_ENDIAN;
}
if( FilenameShort.contains( QStringLiteral( "le" ), Qt::CaseInsensitive ) )
{
rEndianness = PLAYUVER_LITTLE_ENDIAN;
}
if( rWidth > 0 && rHeight > 0 && rInputFormat >= 0 )