]> git.sesse.net Git - movit/blobdiff - ycbcr.cpp
Use nullptr everywhere, now that we have C++11.
[movit] / ycbcr.cpp
index 8c4f7801d33c2efb1ad6c43dac73f3d5d87a30d0..59b7eed4eff496d31a653b0814ece809a148b3f4 100644 (file)
--- 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;
        }
 }