[MPlayer-cvslog] r24453 - trunk/libmpcodecs/ad_hwac3.c
reimar
subversion at mplayerhq.hu
Fri Sep 14 10:56:04 CEST 2007
Author: reimar
Date: Fri Sep 14 10:56:04 2007
New Revision: 24453
Log:
Improved comments, based on patches by Ulion [ulion2002 gmail com]
Modified:
trunk/libmpcodecs/ad_hwac3.c
Modified: trunk/libmpcodecs/ad_hwac3.c
==============================================================================
--- trunk/libmpcodecs/ad_hwac3.c (original)
+++ trunk/libmpcodecs/ad_hwac3.c Fri Sep 14 10:56:04 2007
@@ -160,12 +160,12 @@ static int decode_audio(sh_audio_t *sh_a
else if(isdts == 0)
{
uint16_t *buf16 = (uint16_t *)buf;
- buf16[0] = 0xF872;
- buf16[1] = 0x4E1F;
- buf16[2] = 0x0001;
- buf16[3] = len << 3;
+ buf16[0] = 0xF872; // iec 61937 syncword 1
+ buf16[1] = 0x4E1F; // iec 61937 syncword 2
+ buf16[2] = 0x0001; // data-type ac3
+ buf16[3] = len << 3; // number of bits in payload
#ifdef WORDS_BIGENDIAN
- memcpy(buf + 8, sh_audio->a_in_buffer, len); // untested
+ memcpy(buf + 8, sh_audio->a_in_buffer, len);
#else
swab(sh_audio->a_in_buffer, buf + 8, len);
#endif
@@ -358,7 +358,7 @@ static int decode_audio_dts(unsigned cha
mp_msg(MSGT_DECAUDIO, MSGL_ERR, "DTS: more data than fits\n");
}
#ifdef WORDS_BIGENDIAN
- memcpy(&buf[8], indata_ptr, fsize); // untested
+ memcpy(&buf[8], indata_ptr, fsize);
#else
//TODO if fzise is odd, swab doesn't copy the last byte
swab(indata_ptr, &buf[8], fsize);
More information about the MPlayer-cvslog
mailing list