From 8afb575c1f9d7ac230f06cb84b9d10a77cb0c51e Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 15 Dec 2016 16:55:57 +0000 Subject: [PATCH] Finish last commit --- app/VideoSubWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/VideoSubWindow.cpp b/app/VideoSubWindow.cpp index 718d43e..170a964 100644 --- a/app/VideoSubWindow.cpp +++ b/app/VideoSubWindow.cpp @@ -306,7 +306,7 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog ) { ConfigureFormatDialog formatDialog( this ); UInt Width = 0, Height = 0, BitsPel = 8, FrameRate = 30; - Int Endianness = 0; + Int Endianness = PLAYUVER_BIG_ENDIAN; Int InputFormat = PlaYUVerFrame::YUV420p; if( m_pCurrStream ) @@ -317,7 +317,7 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog ) m_pCurrStream = new PlaYUVerStream; } - if( guessFormat( cFilename, Width, Height, InputFormat, BitsPel ) || bForceDialog ) + if( guessFormat( cFilename, Width, Height, InputFormat, BitsPel, Endianness ) || bForceDialog ) { if( formatDialog.runConfigureFormatDialog( QFileInfo( cFilename ).fileName(), Width, Height, InputFormat, BitsPel, Endianness, FrameRate ) == QDialog::Rejected )