Just found a stupid bug: memcmp() should have been !memcmp(). Please apply to 
both 0.2 and 0.3. The bug only appears if the maximum 36 VBI lines are 
embedded in an MPEG stream (which I suspect never happens in real life), so 
it's a low prio fix, but still...

                Hans
--- v.c	2005-02-15 22:32:48.000000000 +0100
+++ ivtv-vbi.c	2005-02-15 22:33:21.000000000 +0100
@@ -157,7 +157,7 @@
             memcpy(linemask, p + 4, 8);
             p += 12;
         }
-        else if (memcmp(p, "ITV0", 4)) {
+        else if (!memcmp(p, "ITV0", 4)) {
             linemask[0] = 0xffffffff;
             linemask[1] = 0xf;
             p += 4;
@@ -288,7 +288,7 @@
             memcpy(linemask, p + 4, 8);
             p += 12;
         }
-        else if (memcmp(p, "ITV0", 4)) {
+        else if (!memcmp(p, "ITV0", 4)) {
             linemask[0] = 0xffffffff;
             linemask[1] = 0xf;
             p += 4;

Reply via email to