forked from mia/Aegisub
Only update the YCbCr Matrix when resampling if it was actually changed
This commit is contained in:
parent
16a3f38f6d
commit
3d228536f5
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue