瀏覽代碼

Do not use MF AAC for more than 6 channels

Thanks MS.
Vincent Lang 8 年之前
父節點
當前提交
1adeaa58de
共有 1 個文件被更改,包括 6 次插入0 次删除
  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
     {