26
Raw Video Postprocessing / Re: MLV App 1.13 - All in one MLV Video Post Processing App [Windows, Mac and Linux]
« on: June 24, 2022, 02:51:09 AM »
Made this PR for a tiny fix: https://github.com/ilia3101/MLV-App/pull/243
Are you interested in fixes around compiler warnings? E.g., this one:
The macro will expand to look like this:
This feels like a bug to me? Presumably you want both statements to execute only if the condition is met? I would recommend converting the macro into a function. It looks like a function, and performs the job of a function. Just make it be a function.
I don't know if you have some normal process for checking and fixing compiler warnings so I haven't spent any time on this - but there are quite a few compiler warnings that looks like bugs.
Are you interested in fixes around compiler warnings? E.g., this one:
Code: [Select]
MainWindow.cpp: In member function ‘void MainWindow::startExportPipe(QString)’:
../../src/mlv/macros.h:84:41: warning: macro expands to multiple statements [-Wmultistatement-macros]
84 | #define setMlvDontAlwaysUseAmaze(video) (video)->use_amaze = 0; (video)->current_cached_frame_active = 0
| ^
MainWindow.cpp:1788:54: note: in expansion of macro ‘setMlvDontAlwaysUseAmaze’
1788 | if( !ui->actionAlwaysUseAMaZE->isChecked() ) setMlvDontAlwaysUseAmaze( m_pMlvObject );
| ^~~~~~~~~~~~~~~~~~~~~~~~
MainWindow.cpp:1788:9: note: some parts of macro expansion are not guarded by this ‘if’ clause
1788 | if( !ui->actionAlwaysUseAMaZE->isChecked() ) setMlvDontAlwaysUseAmaze( m_pMlvObject );
The macro will expand to look like this:
Code: [Select]
if( !ui->actionAlwaysUseAMaZE->isChecked() )
{
m_pMlvObject->use_amaze = 0;
}
m_pMlvObject->current_cached_frame_active = 0;
This feels like a bug to me? Presumably you want both statements to execute only if the condition is met? I would recommend converting the macro into a function. It looks like a function, and performs the job of a function. Just make it be a function.
I don't know if you have some normal process for checking and fixing compiler warnings so I haven't spent any time on this - but there are quite a few compiler warnings that looks like bugs.