libeplayer3-arm: eliminate some warnings

This commit is contained in:
max_10
2018-01-06 22:17:59 +01:00
committed by Thilo Graf
parent f72e8edc2e
commit 32f64c474d
4 changed files with 12 additions and 4 deletions

View File

@@ -746,8 +746,10 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding);
}
else
{
linuxdvb_printf(20, "no context for Audio\n");
}
}
if (video && videofd != -1)
{
char *Encoding = NULL;
@@ -795,8 +797,10 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding);
}
else
{
linuxdvb_printf(20, "no context for Video\n");
}
}
releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__);
}
linuxdvb_printf(10, "exiting\n");

View File

@@ -749,8 +749,10 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding);
}
else
{
linuxdvb_printf(20, "no context for Audio\n");
}
}
if (video && videofd != -1)
{
char *Encoding = NULL;
@@ -798,8 +800,10 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding);
}
else
{
linuxdvb_printf(20, "no context for Video\n");
}
}
releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__);
}
linuxdvb_printf(10, "exiting\n");

View File

@@ -117,7 +117,7 @@ static int writeData(void *_call)
WriterAVCallData_t *call = (WriterAVCallData_t *) _call;
unsigned char PesHeader[PES_MAX_HEADER_SIZE + 4];
unsigned char Version = 5;
unsigned int FakeStartCode = (Version << 8) | PES_VERSION_FAKE_START_CODE;
// unsigned int FakeStartCode = (Version << 8) | PES_VERSION_FAKE_START_CODE;
divx_printf(10, "\n");
if (call == NULL)
{

View File

@@ -83,7 +83,7 @@ if (debug_level >= level) printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x);
/* Types */
/* ***************************** */
static const unsigned char SequenceLayerStartCode[] = {0x00, 0x00, 0x01, VC1_SEQUENCE_LAYER_METADATA_START_CODE};
//static const unsigned char SequenceLayerStartCode[] = {0x00, 0x00, 0x01, VC1_SEQUENCE_LAYER_METADATA_START_CODE};
static const uint8_t Vc1FrameStartCode[] = {0, 0, 1, VC1_FRAME_START_CODE};
/* ***************************** */