--- multiplexer/en300468ts.c 2010/02/03 14:06:00 1.8 +++ multiplexer/en300468ts.c 2010/09/22 21:04:16 1.9 @@ -1981,6 +1981,10 @@ static unsigned int tab2ts(unsigned char if (outin >= OUTBUF_SIZE) { outin = 0; } +#ifdef DEBUG + fprintf(stderr, "tab2ts(%02x,%02x,%02x,%02x,%02x; %2d), l=%d, d=%d, o:%d\n", + t[0], t[1], t[2], t[3], t[4], c, l, d, outin); +#endif o = &outbuf[outin]; if (d <= (TS_PACKET_SIZE - TS_PACKET_HEADSIZE - 1)) { if (d < (TS_PACKET_SIZE - TS_PACKET_HEADSIZE - 1)) { @@ -2063,6 +2067,16 @@ static void argloop(int f0) + TS_PACKET_SIZE - TS_PACKET_HEADSIZE) * 131) / 128))) { tmo = 0; +#ifdef DEBUG + { + int x; + fprintf(stderr, "tabbuf[%d..%d-1]:\n", tabout[i], tabin[i]); + for (x = tabout[i]; x < tabin[i]; x++) { + fprintf(stderr, "%02x ", tabbuf[i][x]); + } + fprintf(stderr, "\n"); + } +#endif break; } }