libeplayer3: get rid of compiler warnings

This commit is contained in:
martii
2013-06-10 15:06:00 +02:00
parent 997af12a20
commit 65e69b07fb
31 changed files with 147 additions and 153 deletions

View File

@@ -55,7 +55,7 @@
#ifdef H264_DEBUG
static short debug_level = 0;
static short debug_level = 10;
#define h264_printf(level, fmt, x...) do { \
if (debug_level >= level) printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x); } while (0)
@@ -112,16 +112,14 @@ static int writeData(void* _call)
{
WriterAVCallData_t* call = (WriterAVCallData_t*) _call;
unsigned char* PacketStart = NULL;
unsigned int PacketStartSIZE = 0;
unsigned char PesHeader[PES_MAX_HEADER_SIZE];
unsigned long long int VideoPts;
unsigned int TimeDelta;
unsigned int TimeScale;
int len = 0;
static int NoOtherBeginningFound = 1;
int ic = 0;
struct iovec iov[128];
int ic = 0;
struct iovec iov[128];
h264_printf(10, "\n");
if (call == NULL)
@@ -177,10 +175,10 @@ static int writeData(void* _call)
if (initialHeader)
{
avcC_t* avcCHeader = (avcC_t*)call->private_data;
int i;
unsigned int i;
unsigned int ParamSets;
unsigned int ParamOffset;
unsigned int InitialHeaderLength = 0;
unsigned int InitialHeaderLength = 0;
unsigned int ParametersLength;
if (avcCHeader == NULL) {
@@ -319,8 +317,6 @@ static int writeData(void* _call)
NalStart += NalLength;
while (NalLength > 0) {
unsigned int PacketLength = (NalLength < BUFFER_SIZE) ? NalLength : BUFFER_SIZE;
int ExtraLength = 0;
NalLength -= PacketLength;
ic = 0;