1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed DTS detection

This commit is contained in:
Klaus Schmidinger 2005-01-23 14:15:00 +01:00
parent 1743213a1d
commit 3f7f4ffb89

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: device.c 1.77 2005/01/23 14:10:15 kls Exp $ * $Id: device.c 1.78 2005/01/23 14:15:00 kls Exp $
*/ */
#include "device.h" #include "device.h"
@ -863,7 +863,7 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
SetAvailableTrack(ttDolby, SubStreamIndex, SubStreamId); SetAvailableTrack(ttDolby, SubStreamIndex, SubStreamId);
if (!VideoOnly && SubStreamId == availableTracks[currentAudioTrack].id) { if (!VideoOnly && SubStreamId == availableTracks[currentAudioTrack].id) {
w = PlayAudio(Start, d); w = PlayAudio(Start, d);
if (FirstLoop && !(SubStreamId & 0x80)) // no DTS if (FirstLoop && !(SubStreamId & 0x08)) // no DTS
Audios.PlayAudio(Data, Length); Audios.PlayAudio(Data, Length);
} }
} }