diff --git a/src/resolution_resampler.cpp b/src/resolution_resampler.cpp
index 9e3c49b666150d2665505fa3b504fd69a3cce4d6..0f317161adab235d2bbb2d7a944bca96cc9afa76 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);
 }