diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-15 16:39:39 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-15 16:39:39 +0000 |
commit | af7f992651f0d2db39ececd0e5ce9d7460e179be (patch) | |
tree | 28a5d19f5c1e70032d482eed33c00bba1c61a40b | |
parent | d46f568fb4af861b0bac8d9f76d538cf052c724d (diff) | |
download | mpv-af7f992651f0d2db39ececd0e5ce9d7460e179be.tar.bz2 mpv-af7f992651f0d2db39ececd0e5ce9d7460e179be.tar.xz |
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 ;-) )
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24529 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/ad_hwac3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/ad_hwac3.c b/libmpcodecs/ad_hwac3.c index 48e16f135d..19f3ef973a 100644 --- a/libmpcodecs/ad_hwac3.c +++ b/libmpcodecs/ad_hwac3.c @@ -163,6 +163,7 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m 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); |