Only update the YCbCr Matrix when resampling if it was actually changed

This commit is contained in:
Thomas Goyne 2014-10-11 15:45:00 -07:00
parent 16a3f38f6d
commit 3d228536f5

View file

@ -283,7 +283,8 @@ void ResampleResolution(AssFile *ass, ResampleSettings settings) {
ass->SetScriptInfo("PlayResX", std::to_string(settings.dest_x));
ass->SetScriptInfo("PlayResY", std::to_string(settings.dest_y));
ass->SetScriptInfo("YCbCr Matrix", MatrixToString(settings.dest_matrix));
if (resample_colors)
ass->SetScriptInfo("YCbCr Matrix", MatrixToString(settings.dest_matrix));
ass->Commit(_("resolution resampling"), AssFile::COMMIT_SCRIPTINFO | AssFile::COMMIT_DIAG_FULL);
}