mirror of
https://github.com/Silicondust/libhdhomerun
synced 2025-08-21 05:53:29 -07:00
Fix "warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)"
This commit is contained in:
parent
0d3b72c1cc
commit
a711e9f014
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ static void hdhomerun_video_stats_ts_pkt(struct hdhomerun_video_sock_t *vs, uint
|
|||
return;
|
||||
}
|
||||
|
||||
bool transport_error = ptr[1] >> 7;
|
||||
bool transport_error = (ptr[1] & 0x80) != 0;
|
||||
if (transport_error) {
|
||||
vs->transport_error_count++;
|
||||
vs->sequence[packet_identifier] = 0xFF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue