Parcourir la source

Do not use MF AAC for more than 6 channels

Thanks MS.
Vincent Lang il y a 8 ans
Parent
commit
1adeaa58de
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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
     {