[fix] fix the issue where created video codec is different from the one negotiated

This commit is contained in:
dijunkun
2024-09-23 14:31:07 +08:00
parent c7b934026b
commit aa1bc1a936
2 changed files with 2 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ std::unique_ptr<VideoEncoder> VideoEncoderFactory::CreateVideoEncoder(
return std::make_unique<AomAv1Encoder>(AomAv1Encoder());
} else {
#if __APPLE__
LOG_INFO("Use OpenH264 encoder");
return std::make_unique<OpenH264Encoder>(OpenH264Encoder());
#else
if (hardware_acceleration) {