mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] fix the issue where created video codec is different from the one negotiated
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -261,7 +261,7 @@ int PeerConnection::CreateVideoCodec(bool av1, bool hardware_acceleration) {
|
||||
|
||||
hardware_acceleration_ = hardware_acceleration;
|
||||
|
||||
if (av1_encoding_) {
|
||||
if (av1) {
|
||||
if (hardware_acceleration_) {
|
||||
hardware_acceleration_ = false;
|
||||
LOG_WARN("Only support software codec for AV1");
|
||||
|
||||
Reference in New Issue
Block a user