lavc: notice that : in x264/5-params should be escaped

This commit is contained in:
Martin Pulec
2022-11-28 14:55:30 +01:00
parent 3161420888
commit fadc172842

View File

@@ -1932,7 +1932,7 @@ static void setparam_h264_h265_av1(AVCodecContext *codec_ctx, struct setparam_pa
}
void show_encoder_help(string const &name) {
cout << "Options for " << SBOLD(name) << ":\n";
col() << "Options for " << SBOLD(name) << ":\n";
auto *codec = avcodec_find_encoder_by_name(name.c_str());
if (codec == nullptr) {
LOG(LOG_LEVEL_ERROR) << MOD_NAME << "Unable to find encoder " << name << "!\n";
@@ -1944,9 +1944,12 @@ void show_encoder_help(string const &name) {
}
while (opt->name != nullptr) {
cout << (opt->offset == 0 ? "\t\t* " : "\t- ");
cout << SBOLD(opt->name) << (opt->help != nullptr && strlen(opt->help) > 0 ? " - "s + opt->help : ""s) << "\n";
col() << SBOLD(opt->name) << (opt->help != nullptr && strlen(opt->help) > 0 ? " - "s + opt->help : ""s) << "\n";
opt++;
}
if (name == "libx264" || name == "libx265") {
col() << "(options for " << SBOLD(name.substr(3) << "-params") << " should be actually separated by '\\:', not ':' as indicated above)\n";
}
}
/// @retval DEFER_PRESET_SETTING - preset will be set individually later (NVENC)