Enable decoding AVC (H.264) codec by default and enable CTest for it (#309)
Šī revīzija ir iekļauta:
revīziju iesūtīja
GitHub
vecāks
e96b782dcf
revīzija
2d877cd357
@@ -34,12 +34,11 @@ rocDecCreateVideoParser(RocdecVideoParser *parser_handle, RocdecParserParams *pa
|
||||
return ROCDEC_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
const char *is_avc_enabled = std::getenv("ROCDECODE_ENABLE_AVC");
|
||||
const char *is_av1_enabled = std::getenv("ROCDECODE_ENABLE_AV1");
|
||||
if (parser_params->codec_type != rocDecVideoCodec_HEVC &&
|
||||
(parser_params->codec_type == rocDecVideoCodec_AVC && (is_avc_enabled == nullptr || std::string(is_avc_enabled) != "1")) &&
|
||||
parser_params->codec_type != rocDecVideoCodec_AVC &&
|
||||
(parser_params->codec_type == rocDecVideoCodec_AV1 && (is_av1_enabled == nullptr || std::string(is_av1_enabled) != "1"))) {
|
||||
ERR("The current version of rocDecode officially supports only the H.265 (HEVC) codec.");
|
||||
ERR("The current version of rocDecode officially supports only the H.265 (HEVC) and H.264 (AVC) codec.");
|
||||
return ROCDEC_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user