//! Shared helpers for `dvb-tools` subcommands.
use ExitCode;
use TsResync;
/// Read a file into memory. On `Err`, prints to stderr and returns `Err`.
pub
/// Yield every aligned 188-byte packet from `data`, performing TS byte-stream
/// resynchronisation via [`TsResync`]. Supports both 188-byte and 204-byte
/// (RS-coded) streams; the parity bytes are stripped automatically.
///
/// Pulled into a helper so subcommands stay focused on the per-table view
/// rather than the TS framing loop.
pub