Explorar o código

Do not use MF AAC for more than 6 channels

Thanks MS.
Vincent Lang %!s(int64=8) %!d(string=hai) anos
pai
achega
1adeaa58de
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/player/CodecsComponent.cpp

+ 6 - 0
src/player/CodecsComponent.cpp

@@ -700,6 +700,12 @@ static CodecDriver selectBestDecoder(const StreamInfo& stream)
             score = 1;
         }
       }
+      if (codec.driver == "aac_mf")
+      {
+        // Arbitrary but documented and enforced 6 channel limit by MS.
+        if (stream.audioChannels > 6)
+          score = 1;
+      }
     }
     else
     {