mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
ccdetect: fix 608 detection
When cc_type is 00 or 01 the CC is 608 data, the last bit only denotes the field Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/474>
This commit is contained in:
parent
cc402f769c
commit
a7df50e68f
1 changed files with 4 additions and 11 deletions
|
@ -108,18 +108,11 @@ impl CCDetect {
|
|||
cc_type
|
||||
);
|
||||
|
||||
if !started_ccp && cc_valid {
|
||||
if cc_type == 0x00 {
|
||||
if triple[1] != 0x80 || triple[2] != 0x80 {
|
||||
have_cc608 = true;
|
||||
}
|
||||
continue;
|
||||
} else if cc_type == 0x01 {
|
||||
if triple[1] != 0x80 || triple[2] != 0x80 {
|
||||
have_cc708 = true;
|
||||
}
|
||||
continue;
|
||||
if !started_ccp && cc_valid && (cc_type == 0x00 || cc_type == 0x01) {
|
||||
if triple[1] != 0x80 || triple[2] != 0x80 {
|
||||
have_cc608 = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if cc_type & 0b10 == 0b10 {
|
||||
|
|
Loading…
Reference in a new issue