From 0a4323de04098c60c67359de26ff0f6040bd09c0 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 19 Jun 2002 07:14:01 +0000 Subject: still working on it... --- str-util.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/str-util.cpp b/str-util.cpp index c944508..f735758 100644 --- a/str-util.cpp +++ b/str-util.cpp @@ -37,7 +37,7 @@ struct STR_Header { Uint16 Channels; } __attribute__((packed)); - +Byte * video = 0, * audio = 0; void process_one_sector(FILE * f) { Byte sector[2336]; @@ -64,6 +64,13 @@ void process_one_sector(FILE * f) { printm(M_BARE, "Movie HeadM : %08x\n", h->StMOVIE_HEADM); printm(M_BARE, "Movie HeadV : %08x\n", h->StMOVIE_HEADV); printm(M_BARE, "Channels : %04x\n", h->Channels); + if (h->StSECTOR_OFFSET == 0) { + video = (Byte *) malloc(h->StSECTOR_SIZE * 2016); + } + + memcpy(video + h->StSECTOR_OFFSET * 2016, sector + 40); + + } else if (sector[2] == 0x64) { printm(M_BARE, "Audio sector\n"); } else { -- cgit v1.2.3