mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 16:40:18 +00:00
lavc: enable header_inserter for h264_amf
AMD RX 7600 needs this even though header_spacing is set to 1. RX 580 didn't need this.
This commit is contained in:
@@ -1549,6 +1549,11 @@ static void configure_amf([[maybe_unused]] AVCodecContext *codec_ctx, [[maybe_un
|
||||
check_av_opt_set<const char *>(codec_ctx->priv_data, "header_insertion_mode", "gop", "header_insertion_mode for AMF");
|
||||
} else if ("h264_amf"s == codec_ctx->codec->name) {
|
||||
check_av_opt_set<int>(codec_ctx->priv_data, "header_spacing", 1);
|
||||
if (param->header_inserter_req == -1) {
|
||||
MSG(INFO, "Auto-enabling header inserter for %s.\n",
|
||||
codec_ctx->codec->name);
|
||||
param->header_inserter_req = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1879,8 +1884,8 @@ static void setparam_h264_h265_av1(AVCodecContext *codec_ctx, struct setparam_pa
|
||||
configure_nvenc(codec_ctx, param);
|
||||
} else if (strcmp(codec_ctx->codec->name, "h264_omx") == 0) {
|
||||
if (param->header_inserter_req == -1) {
|
||||
MSG(INFO, "Enablling header inserter for h264_omx by "
|
||||
"default.\n");
|
||||
MSG(INFO, "Auto-enabling header inserter for %s.\n",
|
||||
codec_ctx->codec->name);
|
||||
param->header_inserter_req = 1; // (untested)
|
||||
}
|
||||
} else if (strcmp(codec_ctx->codec->name, "h264_qsv") == 0 ||
|
||||
|
||||
Reference in New Issue
Block a user