Commit 5deb11b3 authored by Raphaël Zumer's avatar Raphaël Zumer

Fix 4:2:2 sampling using the wrong profile

parent 0b78956b
......@@ -297,7 +297,8 @@ impl Sequence {
assert!(width_bits <= 16);
assert!(height_bits <= 16);
let profile = if config.bit_depth == 12 {
let profile = if config.bit_depth == 12 ||
config.chroma_sampling == ChromaSampling::Cs422 {
2
} else if config.chroma_sampling == ChromaSampling::Cs444 {
1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment