]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
another coverity fix for the cc checking code, fixes #2724
authorJaroslav Kysela <perex@perex.cz>
Sun, 22 Mar 2015 20:37:31 +0000 (21:37 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 22 Mar 2015 20:38:23 +0000 (21:38 +0100)
src/input/mpegts/mpegts_input.c

index 23ddd7ca93d2d1037254c8d1d5e5c9fc295e832b..0f84225a48fa8ba3f1ac900fb6169c005c8d5452 100644 (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;
           }