From 3d228536f5c3b6b59243fcab6b8103650315eebd Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 11 Oct 2014 15:45:00 -0700 Subject: [PATCH] Only update the YCbCr Matrix when resampling if it was actually changed --- src/resolution_resampler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resolution_resampler.cpp b/src/resolution_resampler.cpp index 9e3c49b66..0f317161a 100644 --- a/src/resolution_resampler.cpp +++ b/src/resolution_resampler.cpp @@ -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); }