changeset 24509:767a9fd651c7

Copy AC-3 bsmod field into IEC data-type field as required by the specs Is not known to make any difference in practice (yet?). Patch by Ulion (ulion2002 gmail com) minus a cast that seemed unnecessary (beat me if I was wrong ;-) )
author reimar
date Sat, 15 Sep 2007 16:39:39 +0000
parents 4f9b7524f65d
children e7f836a459ea
files libmpcodecs/ad_hwac3.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Sat Sep 15 16:30:39 2007 +0000
+++ b/libmpcodecs/ad_hwac3.c	Sat Sep 15 16:39:39 2007 +0000
@@ -163,6 +163,7 @@
     buf16[0] = 0xF872;   // iec 61937 syncword 1
     buf16[1] = 0x4E1F;   // iec 61937 syncword 2
     buf16[2] = 0x0001;   // data-type ac3
+    buf16[2] |= (sh_audio->a_in_buffer[5] & 0x7) << 8; // bsmod
     buf16[3] = len << 3; // number of bits in payload
 #ifdef WORDS_BIGENDIAN
     memcpy(buf + 8, sh_audio->a_in_buffer, len);