small fix for ac3 in movies
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 27 Oct 2009 13:37:47 +0000 (13:37 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 27 Oct 2009 13:37:47 +0000 (13:37 +0000)
ac3lipsync/src/AC3delay.py

index b25338a..610dfca 100644 (file)
@@ -178,7 +178,7 @@ class AC3delay:
 
                 tlist.append((description, x))
                 if x == self.selectedAudioIndex:
-                    if (description.find("AC3") != -1 and not bDownmixEnabled) or description.find("DTS") != -1:
+                    if ((description.find("AC3") != -1 or description.find("AC-3") != -1) and not bDownmixEnabled) or description.find("DTS") != -1:
                         self.whichAudio = AC3
                         self.channelAudio = AC3
                     else: