From fa4a49c84b05f644b363ff463cbb911d347a27e3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 6 Aug 2001 16:08:01 +0000 Subject: [PATCH] Fixed bsmod value in AC3 header --- ac3dec/ac3spdif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ac3dec/ac3spdif.c b/ac3dec/ac3spdif.c index 4ab043e..77b19ca 100644 --- a/ac3dec/ac3spdif.c +++ b/ac3dec/ac3spdif.c @@ -27,7 +27,7 @@ void swab(const void*, void*, size_t); #define BLOCK_SIZE 6144 -static char buf[BLOCK_SIZE]; +static unsigned char buf[BLOCK_SIZE]; static uint32_t sbuffer_size; static syncinfo_t syncinfo; static char *sbuffer; @@ -141,7 +141,7 @@ output_spdif(uint8_t *data_start, uint8_t *data_end, int quiet) buf[0] = 0x72; buf[1] = 0xf8; // spdif syncword buf[2] = 0x1f; buf[3] = 0x4e; // .............. buf[4] = 0x01; // AC3 data - buf[5] = buf[10] >> 5; // bsmod, stream = 0 + buf[5] = buf[13] & 7; // bsmod, stream = 0 buf[6] = (syncinfo.frame_size * 16) & 0xff; buf[7] = ((syncinfo.frame_size * 16) >> 8) & 0xff; buf[8] = 0x77; buf[9] = 0x0b; // AC3 syncwork -- 2.47.1