TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
Command line arguments for transport stream packets fuzzing. More...
#include <tsTSFuzzingArgs.h>
Public Member Functions | |
TSFuzzingArgs ()=default | |
Constructor. | |
void | defineArgs (Args &args) |
Add command line option definitions in an Args. | |
bool | loadArgs (DuckContext &duck, Args &args) |
Load arguments from command line. | |
Public Attributes | |
PIDSet | pids {} |
PID values which can be corrupted. | |
Fraction< uint32_t > | probability = 0 |
Probability of corrupting a byte in the stream. | |
ByteBlock | seed {} |
Seed for the PRNG, required for reproducibility. | |
bool | sync_byte = false |
May corrupt the 0x47 sync byte in TS packets. | |
Command line arguments for transport stream packets fuzzing.
void ts::TSFuzzingArgs::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
[in,out] | args | Command line arguments to update. |
bool ts::TSFuzzingArgs::loadArgs | ( | DuckContext & | duck, |
Args & | args | ||
) |
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |