Skip to content

Commit

Permalink
writer: fix padding handling
Browse files Browse the repository at this point in the history
Both bytes have to be padding to be ignored.
  • Loading branch information
ystreet committed Dec 3, 2024
1 parent 9ab1720 commit 19d0b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,12 @@ impl CCDataWriter {
pub fn push_cea608(&mut self, cea608: Cea608) {
match cea608 {
Cea608::Field1(byte0, byte1) => {
if byte0 != 0x80 && byte1 != 0x80 {
if byte0 != 0x80 || byte1 != 0x80 {
self.cea608_1.push_front((byte0, byte1))
}
}
Cea608::Field2(byte0, byte1) => {
if byte0 != 0x80 && byte1 != 0x80 {
if byte0 != 0x80 || byte1 != 0x80 {
self.cea608_2.push_front((byte0, byte1))
}
}
Expand Down

0 comments on commit 19d0b30

Please sign in to comment.