summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3device.c')
-rw-r--r--dxr3device.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dxr3device.c b/dxr3device.c
index 4d933ad..bcbf70b 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -249,7 +249,13 @@ int cDxr3Device::PlayAudio(const uchar *Data, int Length, uchar Id)
cDxr3PesFrame frame;
frame.parse(Data, Length);
- aDecoder->decode(&frame, audioOut);
+ bool isAc3 = ((Id & 0xF0) == 0x80) || Id == 0xbd;
+
+ if (!isAc3) {
+ aDecoder->decode(&frame, audioOut);
+ } else {
+ isyslog("[dxr3-device] ac3 is not supported");
+ }
return Length;
}