summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-09-02 20:25:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-09-02 20:25:16 +0200
commit2e97eed6ad98aee6a0058b18e46b9b3430454d86 (patch)
tree83e6bd58b02d56d34aca52f4f28f64174b0fd9b2
parent4c88f1da7e96572ad63e82b4756694abef0dd33a (diff)
downloadvdr-2e97eed6ad98aee6a0058b18e46b9b3430454d86.tar.gz
vdr-2e97eed6ad98aee6a0058b18e46b9b3430454d86.tar.bz2
Fixed processing the PDCDescriptor in 'libsi' on big endian systems
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY2
-rw-r--r--libsi/headers.h8
3 files changed, 6 insertions, 7 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 10bf779d..86ab7dd7 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1992,3 +1992,6 @@ Tomas Berglund <tomber@telia.com>
Matthias Schwarzott <zzam@gentoo.org>
for suggesting to add LC_ALL to the checks for UTF-8 at startup
+
+Martin Ostermann <martin@familie-ostermann.de>
+ for fixing processing the PDCDescriptor in 'libsi' on big endian systems
diff --git a/HISTORY b/HISTORY
index 10225751..337adaf5 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4903,3 +4903,5 @@ Video Disk Recorder Revision History
(reported by Alexander Rieger).
- Fixed a memory leak in the cTimer::operator=() when using the 'aux' string
(reported by Alexander Rieger).
+- Fixed processing the PDCDescriptor in 'libsi' on big endian systems (thanks to
+ Martin Ostermann).
diff --git a/libsi/headers.h b/libsi/headers.h
index afa3106d..ea7824bc 100644
--- a/libsi/headers.h
+++ b/libsi/headers.h
@@ -10,7 +10,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: headers.h 1.7 2006/05/28 14:25:30 kls Exp $
+ * $Id: headers.h 1.8 2006/09/02 20:25:16 kls Exp $
* *
***************************************************************************/
@@ -1534,15 +1534,9 @@ struct descr_dsng {
struct descr_pdc {
u_char descriptor_tag :8;
u_char descriptor_length :8;
-#if BYTE_ORDER == BIG_ENDIAN
- u_char pil2 :8;
- u_char pil1 :8;
- u_char pil0 :8;
-#else
u_char pil0 :8;
u_char pil1 :8;
u_char pil2 :8;
-#endif
};
/* 0x6A ac3_descriptor */