|
@@ -218,16 +218,17 @@ static void detect_discontinuity(struct ts *ts, uint8_t *ts_packet) {
|
218
|
218
|
|
219
|
219
|
pidmap_set(&ts->pid_seen, pid);
|
220
|
220
|
pidmap_set_val(&ts->cc, pid, cur_cc);
|
221
|
|
- ts_LOGf("Input PID 0x%03x appeared (%s)\n",
|
|
221
|
+ ts_LOGf("NEW | Input PID 0x%04x appeared (%s)\n",
|
222
|
222
|
pid, get_pid_desc(ts, pid));
|
223
|
223
|
return;
|
224
|
224
|
}
|
225
|
225
|
|
226
|
226
|
last_cc = pidmap_get(&ts->cc, pid);
|
227
|
227
|
if (last_cc != cur_cc && ((last_cc + 1) & 0x0f) != cur_cc)
|
228
|
|
- ts_LOGf("Input discontinuity (expected %2d got %2d) PID 0x%03x (%s)\n",
|
229
|
|
- ((last_cc + 1) & 0x0f), cur_cc,
|
|
228
|
+ ts_LOGf("--- | TS discontinuity on PID 0x%04x expected %2d got %2d /%d/ (%s)\n",
|
230
|
229
|
pid,
|
|
230
|
+ ((last_cc + 1) & 0x0f), cur_cc,
|
|
231
|
+ (cur_cc - ((last_cc + 1) & 0x0f)) & 0x0f,
|
231
|
232
|
get_pid_desc(ts, pid));
|
232
|
233
|
pidmap_set_val(&ts->cc, pid, cur_cc);
|
233
|
234
|
}
|