summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-14 08:56:04 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-14 08:56:04 +0000
commitc3d320c6ac69d8ed83322127b777067188016a58 (patch)
tree7624ea3f394a19e385f362cf8ac722492cc900dc /libmpcodecs
parentcb9466a0b31c646618543366afc72f0d9df02c5a (diff)
downloadmpv-c3d320c6ac69d8ed83322127b777067188016a58.tar.bz2
mpv-c3d320c6ac69d8ed83322127b777067188016a58.tar.xz
Improved comments, based on patches by Ulion [ulion2002 gmail com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24453 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_hwac3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpcodecs/ad_hwac3.c b/libmpcodecs/ad_hwac3.c
index be8d10f0d8..65b7959ec3 100644
--- a/libmpcodecs/ad_hwac3.c
+++ b/libmpcodecs/ad_hwac3.c
@@ -160,12 +160,12 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
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 char *indata_ptr, int len, unsigned char *b
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);