another coverity fix for the cc checking code, fixes #2724

This commit is contained in:
Jaroslav Kysela 2015-03-22 21:37:31 +01:00
parent c308e1705e
commit db5cf2adff

View file

@ -1103,7 +1103,7 @@ mpegts_input_process
for (tsb2 = tsb, tsb2_end = tsb + llen, cc2 = mp->mp_cc;
tsb2 < tsb2_end; tsb2 += 188) {
cc = tsb2[3] & 0x0f;
if (cc2 != -1 && cc2 != cc) {
if (cc2 != 0xff && cc2 != cc) {
tvhtrace("mpegts", "pid %04X cc err %2d != %2d", pid, cc, cc2);
++mmi->mmi_stats.cc;
}