1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

silly cleanup - maybe fixes dummy printf bug

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4423 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-01-30 22:02:57 +00:00
parent d8efbed69a
commit 6b95ed4805

View File

@ -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) 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 }; out[0] = 0x72;
out[1] = 0xF8;
memcpy(out, sync, 6); out[2] = 0x1F;
if (length) out[3] = 0x4E;
out[4] = data_type; /* & 0x1F; */ out[4] = (length) ? data_type : 0; /* & 0x1F; */
else out[5] = 0x00;
out[4] = 0;
out[6] = (length << 3) & 0xFF; out[6] = (length << 3) & 0xFF;
out[7] = (length >> 5) & 0xFF; out[7] = (length >> 5) & 0xFF;
if (big_endian) if (big_endian)