mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-23 03:50:59 +00:00
libcaption: fix parity code calculation
A misplaced parenthesis was causing the odd parity bit to be set based on an incomplete version of the preamble
This commit is contained in:
parent
084c9d1447
commit
a3dafea688
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ eia608_row_pramble (int row, int chan, int x, int underline)
|
||||||
{
|
{
|
||||||
row = eia608_reverse_row_map[row & 0x0F];
|
row = eia608_reverse_row_map[row & 0x0F];
|
||||||
return eia608_parity (0x1040 | (chan ? 0x0800 : 0x0000) | ((row << 7) &
|
return eia608_parity (0x1040 | (chan ? 0x0800 : 0x0000) | ((row << 7) &
|
||||||
0x0700) | ((row << 5) & 0x0020)) | ((x << 1) & 0x001E) | (underline ?
|
0x0700) | ((row << 5) & 0x0020) | ((x << 1) & 0x001E) | (underline ?
|
||||||
0x0001 : 0x0000);
|
0x0001 : 0x0000));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t
|
uint16_t
|
||||||
|
|
Loading…
Reference in a new issue