]> git.sesse.net Git - movit/blobdiff - ycbcr_422interleaved_input.cpp
Use nullptr everywhere, now that we have C++11.
[movit] / ycbcr_422interleaved_input.cpp
index c345f8d805ae83a69923c21f01ff601b616341a1..6546c87bd1217d7de1d221b0dedc9f4abda18ee7 100644 (file)
@@ -21,7 +21,7 @@ YCbCr422InterleavedInput::YCbCr422InterleavedInput(const ImageFormat &image_form
          ycbcr_format(ycbcr_format),
          width(width),
          height(height),
-         resource_pool(NULL)
+         resource_pool(nullptr)
 {
        pbo = 0;
        texture_num[0] = texture_num[1] = 0;
@@ -35,7 +35,7 @@ YCbCr422InterleavedInput::YCbCr422InterleavedInput(const ImageFormat &image_form
        pitches[CHANNEL_LUMA] = width;
        pitches[CHANNEL_CHROMA] = width / ycbcr_format.chroma_subsampling_x;
 
-       pixel_data = NULL;
+       pixel_data = nullptr;
 
        register_uniform_sampler2d("tex_y", &uniform_tex_y);
        register_uniform_sampler2d("tex_cbcr", &uniform_tex_cbcr);