--- pat.c.old 2009-02-27 10:05:57.000000000 +0100 +++ pat.c 2010-01-16 22:31:23.000000000 +0100 @@ -217,6 +217,11 @@ for(pl=g_list_first(current->program);pl;pl=g_list_next(pl)) { pcur=pl->data; + if (pcur->pid == 0) { + logwrite(LOG_ERROR, "pat: Invalid PMT pid 0 for pnr %d", pcur->pnr); + continue; + } + /* Do we have a current PAT ? */ if (!last) { pmt_pidfrompat(a, pcur->pnr, pcur->pid);