X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fmake_black_test.cc;h=23f4a71ffd4fa342925ee425829402347174eb42;hb=16d27b9621a6e4e782f8bdbf375f01e187883320;hp=913b6da10857ba1de2e4d2586899a5a2e7c2079c;hpb=527deef6f18c46badb396e4520d802333997add2;p=dcpomatic.git diff --git a/test/make_black_test.cc b/test/make_black_test.cc index 913b6da10..23f4a71ff 100644 --- a/test/make_black_test.cc +++ b/test/make_black_test.cc @@ -75,13 +75,13 @@ BOOST_AUTO_TEST_CASE (make_black_test) pix_fmts.push_back (AV_PIX_FMT_YUVA422P16LE); pix_fmts.push_back (AV_PIX_FMT_YUVA444P16LE); pix_fmts.push_back (AV_PIX_FMT_RGB555LE); // 46 - + int N = 0; for (list::const_iterator i = pix_fmts.begin(); i != pix_fmts.end(); ++i) { boost::shared_ptr foo (new Image (*i, in_size, true)); foo->make_black (); - boost::shared_ptr bar = foo->scale (out_size, PIX_FMT_RGB24, true); - + boost::shared_ptr bar = foo->scale (out_size, dcp::YUV_TO_RGB_REC601, AV_PIX_FMT_RGB24, true); + uint8_t* p = bar->data()[0]; for (int y = 0; y < bar->size().height; ++y) { uint8_t* q = p;