mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-30 22:05:20 +00:00
Exit if input source is stdin for MP4.
This commit is contained in:
parent
2464064226
commit
d8a6642d5f
@ -2150,6 +2150,12 @@ int parse_parameters (struct ccx_s_options *opt, int argc, char *argv[])
|
||||
fatal (EXIT_INCOMPATIBLE_PARAMETERS, "Error: Parameter %s not understood.\n", argv[i]);
|
||||
// Unrecognized switches are silently ignored
|
||||
}
|
||||
|
||||
if(opt->demux_cfg.auto_stream ==CCX_SM_MP4 && opt->input_source == CX_DS_STDIN)
|
||||
{
|
||||
fatal (EXIT_INCOMPATIBLE_PARAMETERS, "MP4 requires an actual file, it's not possible to read from a stream, including stdin.\n");
|
||||
}
|
||||
|
||||
if(opt->gui_mode_reports)
|
||||
{
|
||||
opt->no_progress_bar=1;
|
||||
|
Loading…
Reference in New Issue
Block a user