From: Jaroslav Kysela Date: Sun, 22 Mar 2015 20:37:31 +0000 (+0100) Subject: another coverity fix for the cc checking code, fixes #2724 X-Git-Tag: v4.1~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db5cf2adff736781169f6a4e375dc29e0e28cd3f;p=thirdparty%2Ftvheadend.git another coverity fix for the cc checking code, fixes #2724 --- diff --git a/src/input/mpegts/mpegts_input.c b/src/input/mpegts/mpegts_input.c index 23ddd7ca9..0f84225a4 100644 --- a/src/input/mpegts/mpegts_input.c +++ b/src/input/mpegts/mpegts_input.c @@ -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; }