Browse Source

Do not use MF AAC for more than 6 channels

Thanks MS.
Vincent Lang 8 năm trước cách đây
mục cha
commit
1adeaa58de
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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
     {