Fix "warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)"

This commit is contained in:
Zoltan Csizmadia 2017-08-20 10:37:31 -05:00 committed by GitHub
commit a711e9f014

View file

@ -188,7 +188,7 @@ static void hdhomerun_video_stats_ts_pkt(struct hdhomerun_video_sock_t *vs, uint
return; return;
} }
bool transport_error = ptr[1] >> 7; bool transport_error = (ptr[1] & 0x80) != 0;
if (transport_error) { if (transport_error) {
vs->transport_error_count++; vs->transport_error_count++;
vs->sequence[packet_identifier] = 0xFF; vs->sequence[packet_identifier] = 0xFF;