diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2022-10-10 05:04:28 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-25 11:06:11 +0200 |
commit | b87398341babf971fae3996615283039326538e3 (patch) | |
tree | 0c8671d32bff2eceea017d7cd8ca9640c0d75bbd /Userland/Applications/VideoPlayer | |
parent | cd127b65c3ebf26f8ff4ceab15fc1c3f26cd4c68 (diff) | |
download | serenity-b87398341babf971fae3996615283039326538e3.zip |
LibVideo: Add CICP parsing to MatroskaReader
This will allow correct independent code points to be selected from VP9
in WebM, since the VP9 bitstream does not specify them independently.
Diffstat (limited to 'Userland/Applications/VideoPlayer')
-rw-r--r-- | Userland/Applications/VideoPlayer/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/VideoPlayer/main.cpp b/Userland/Applications/VideoPlayer/main.cpp index fb56803a05..069b173012 100644 --- a/Userland/Applications/VideoPlayer/main.cpp +++ b/Userland/Applications/VideoPlayer/main.cpp @@ -93,6 +93,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto uv_subsampling_x = vp9_decoder.get_uv_subsampling_x(); Gfx::IntSize uv_size { y_size.width() >> uv_subsampling_x, y_size.height() >> uv_subsampling_y }; auto cicp = vp9_decoder.get_cicp_color_space(); + video_track.color_format.replace_code_points_if_specified(cicp); cicp.default_code_points_if_unspecified(Video::ColorPrimaries::BT709, Video::TransferCharacteristics::BT709, Video::MatrixCoefficients::BT709); auto color_converter_result = Video::ColorConverter::create(vp9_decoder.get_bit_depth(), cicp); |