mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Making sure the first audio packet is not dropped when switching to "pre 1.3.19 Dolby Digital compatibility mode"
This commit is contained in:
parent
3b871f8bb6
commit
78598e1a0a
2
HISTORY
2
HISTORY
@ -3403,3 +3403,5 @@ Video Disk Recorder Revision History
|
|||||||
unmodified version with only 2MB of SDRAM, to avoid audio stuttering when
|
unmodified version with only 2MB of SDRAM, to avoid audio stuttering when
|
||||||
playing Dolby Digital over the DVB card (thanks to Christian Jacobsen and Chad
|
playing Dolby Digital over the DVB card (thanks to Christian Jacobsen and Chad
|
||||||
Flynt for suggestions and experiments in that area).
|
Flynt for suggestions and experiments in that area).
|
||||||
|
- Making sure the first audio packet is not dropped when switching to "pre 1.3.19
|
||||||
|
Dolby Digital compatibility mode".
|
||||||
|
4
device.c
4
device.c
@ -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.90 2005/02/12 12:26:49 kls Exp $
|
* $Id: device.c 1.91 2005/02/12 16:29:49 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@ -893,6 +893,7 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
|
|||||||
uchar SubStreamIndex = SubStreamId & 0x1F;
|
uchar SubStreamIndex = SubStreamId & 0x1F;
|
||||||
|
|
||||||
// Compatibility mode for old VDR recordings, where 0xBD was only AC3:
|
// Compatibility mode for old VDR recordings, where 0xBD was only AC3:
|
||||||
|
pre_1_3_19_PrivateStreamDeteced:
|
||||||
if (pre_1_3_19_PrivateStream) {
|
if (pre_1_3_19_PrivateStream) {
|
||||||
SubStreamId = c;
|
SubStreamId = c;
|
||||||
SubStreamType = 0x80;
|
SubStreamType = 0x80;
|
||||||
@ -927,6 +928,7 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
|
|||||||
dsyslog("switching to pre 1.3.19 Dolby Digital compatibility mode");
|
dsyslog("switching to pre 1.3.19 Dolby Digital compatibility mode");
|
||||||
ClrAvailableTracks();
|
ClrAvailableTracks();
|
||||||
pre_1_3_19_PrivateStream = true;
|
pre_1_3_19_PrivateStream = true;
|
||||||
|
goto pre_1_3_19_PrivateStreamDeteced;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user