From 53c6d582ba12e6db6cd5cfc15573d68cb59ecd77 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 5 Dec 2011 15:35:10 +0100 Subject: [PATCH] Fix DTSC tools compiling --- util/flv_tag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/flv_tag.cpp b/util/flv_tag.cpp index f0fb956f..c5b4b964 100644 --- a/util/flv_tag.cpp +++ b/util/flv_tag.cpp @@ -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;