diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-02 17:23:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-02 17:23:25 +0000 |
| commit | 496d364e2b8eaba0e9bd89b70660e58bbd9a1f29 (patch) | |
| tree | e8874c871b91730bf106347004adc62ceec680a8 /test/client_server_test.cc | |
| parent | 5e0a4699d50931aafaca2801fa8b010549ab3abc (diff) | |
Fix incorrect pixel format on subtitles when they are sent to encoding servers.
Diffstat (limited to 'test/client_server_test.cc')
| -rw-r--r-- | test/client_server_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/client_server_test.cc b/test/client_server_test.cc index cb1aba389..074ca0c9e 100644 --- a/test/client_server_test.cc +++ b/test/client_server_test.cc @@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE (client_server_test_rgb) p += image->stride()[0]; } - shared_ptr<Image> sub_image (new Image (AV_PIX_FMT_RGBA, dcp::Size (100, 200), true)); + shared_ptr<Image> sub_image (new Image (AV_PIX_FMT_BGRA, dcp::Size (100, 200), true)); p = sub_image->data()[0]; for (int y = 0; y < 200; ++y) { uint8_t* q = p; @@ -153,7 +153,7 @@ BOOST_AUTO_TEST_CASE (client_server_test_yuv) } } - shared_ptr<Image> sub_image (new Image (AV_PIX_FMT_RGBA, dcp::Size (100, 200), true)); + shared_ptr<Image> sub_image (new Image (AV_PIX_FMT_BGRA, dcp::Size (100, 200), true)); uint8_t* p = sub_image->data()[0]; for (int y = 0; y < 200; ++y) { uint8_t* q = p; |
