render: ensure correct yuv range handling
This commit is contained in:
@@ -36,7 +36,8 @@ namespace olive {
|
||||
ExportVideoTab::ExportVideoTab(ColorManager* color_manager, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
color_manager_(color_manager),
|
||||
threads_(0)
|
||||
threads_(0),
|
||||
yuv_range_(EncodingParams::kYUVDefault)
|
||||
{
|
||||
QVBoxLayout* outer_layout = new QVBoxLayout(this);
|
||||
|
||||
@@ -211,10 +212,12 @@ void ExportVideoTab::OpenAdvancedDialog()
|
||||
|
||||
d.set_threads(threads_);
|
||||
d.set_pix_fmt(pix_fmt_);
|
||||
d.set_yuv_range(yuv_range_);
|
||||
|
||||
if (d.exec() == QDialog::Accepted) {
|
||||
threads_ = d.threads();
|
||||
pix_fmt_ = d.pix_fmt();
|
||||
yuv_range_ = d.yuv_range();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user