mpegts: ignore NUL packets early

This commit is contained in:
Adam Sutton 2014-04-16 19:51:36 +01:00
parent 155f303215
commit ade9e3c26d

View file

@ -517,6 +517,9 @@ mpegts_input_process
service_t *s;
int pid = ((tsb[i+1] & 0x1f) << 8) | tsb[i+2];
/* Ignore NUL packets */
if (pid == 0x1FFF) goto done;
/* Find PID */
if ((mp = mpegts_mux_find_pid(mm, pid, 0))) {
// Note: there is a minor danger this caching will get things
@ -573,6 +576,7 @@ mpegts_input_process
}
}
done:
i += 188;
len -= 188;
}