[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

@@ -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");