summaryrefslogtreecommitdiffstats
path: root/ac3-iec958.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-30 22:02:57 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-30 22:02:57 +0000
commit6b95ed480582a8bd5ba1add32b7469c755925766 (patch)
treed1e0a39b7200fc1e8c6dc7f597bbb9eedb521ad0 /ac3-iec958.c
parentd8efbed69af89790c0823fdf6c8cf05507d449d6 (diff)
downloadmpv-6b95ed480582a8bd5ba1add32b7469c755925766.tar.bz2
mpv-6b95ed480582a8bd5ba1add32b7469c755925766.tar.xz
silly cleanup - maybe fixes dummy printf bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4423 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'ac3-iec958.c')
-rw-r--r--ac3-iec958.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ac3-iec958.c b/ac3-iec958.c
index 75e98e1ed8..45500ab4c1 100644
--- a/ac3-iec958.c
+++ b/ac3-iec958.c
@@ -85,13 +85,12 @@ struct syncframe {
int ac3_iec958_build_burst(int length, int data_type, int big_endian, unsigned char * data, unsigned char * out)
{
- const char sync[6] = { 0x72, 0xF8, 0x1F, 0x4E, 0x00, 0x00 };
-
- memcpy(out, sync, 6);
- if (length)
- out[4] = data_type; /* & 0x1F; */
- else
- out[4] = 0;
+ out[0] = 0x72;
+ out[1] = 0xF8;
+ out[2] = 0x1F;
+ out[3] = 0x4E;
+ out[4] = (length) ? data_type : 0; /* & 0x1F; */
+ out[5] = 0x00;
out[6] = (length << 3) & 0xFF;
out[7] = (length >> 5) & 0xFF;
if (big_endian)