Fix DTSC tools compiling

This commit is contained in:
Thulinma 2011-12-05 15:35:10 +01:00
parent ec84fac33e
commit 05364aad2e
5 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
SRC = main.cpp ../util/dtsc.cpp
SRC = main.cpp ../../util/dtsc.cpp
OBJ = $(SRC:.cpp=.o)
OUT = DTSC_Info
INCLUDES =

View file

@ -10,7 +10,7 @@
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include "../util/dtsc.h" //DTSC support
#include "../../util/dtsc.h" //DTSC support
/// Reads DTSC from stdin and outputs human-readable information to stderr.
int main() {

View file

@ -1,4 +1,4 @@
SRC = main.cpp ../util/flv_tag.cpp ../util/dtsc.cpp ../util/amf.cpp ../util/socket.cpp
SRC = main.cpp ../../util/flv_tag.cpp ../../util/dtsc.cpp ../../util/amf.cpp ../../util/socket.cpp
OBJ = $(SRC:.cpp=.o)
OUT = DDV_FLV2DTSC
INCLUDES =

View file

@ -10,9 +10,9 @@
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include "../util/flv_tag.h" //FLV support
#include "../util/dtsc.h" //DTSC support
#include "../util/amf.h" //AMF support
#include "../../util/flv_tag.h" //FLV support
#include "../../util/dtsc.h" //DTSC support
#include "../../util/amf.h" //AMF support
// String onMetaData
// ECMA Array

View file

@ -336,7 +336,7 @@ bool FLV::Tag::DTSCLoader(DTSC::Stream & S){
/// Helper function that properly sets the tag length from the internal len variable.
void FLV::Tag::setLen(){
int len4 = len - 4;
int i = data+len-1;
int i = len-1;
data[--i] = (len4) & 0xFF;
len4 >>= 8;
data[--i] = (len4) & 0xFF;