X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr.cpp;fp=ycbcr.cpp;h=59b7eed4eff496d31a653b0814ece809a148b3f4;hp=8c4f7801d33c2efb1ad6c43dac73f3d5d87a30d0;hb=f34b1c36acd27944f00885edfc55363432bfec8e;hpb=0ed2c7fe3876a49d1565e3425e5a491206ffe32d diff --git a/ycbcr.cpp b/ycbcr.cpp index 8c4f780..59b7eed 100644 --- a/ycbcr.cpp +++ b/ycbcr.cpp @@ -148,10 +148,10 @@ void compute_ycbcr_matrix(YCbCrFormat ycbcr_format, float* offset, Matrix3d* ycb offset[1] /= scale; offset[2] /= scale; *ycbcr_to_rgb *= scale; - if (scale_factor != NULL) { + if (scale_factor != nullptr) { *scale_factor = scale; } - } else if (scale_factor != NULL) { + } else if (scale_factor != nullptr) { *scale_factor = 1.0; } }