mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
siren: Cast shift mask to unsigned value
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
9b5ea24e2b
commit
37a8d49eaa
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ Siren7_EncodeFrame (SirenEncoder encoder, unsigned char *DataIn,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checksum_bits > 0) {
|
if (checksum_bits > 0) {
|
||||||
BufferOut[idx - 1] &= (-1 << checksum_bits);
|
BufferOut[idx - 1] &= (((unsigned short) -1) << checksum_bits);
|
||||||
sum = 0;
|
sum = 0;
|
||||||
idx = 0;
|
idx = 0;
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in a new issue