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

@@ -687,7 +687,7 @@ int LinuxDvbPts(Context_t *context __attribute__((unused)), unsigned long long i
return ret; return ret;
} }
int LinuxDvbGetFrameCount(Context_t *context __attribute__((unused)), unsigned long long int *frameCount) int LinuxDvbGetFrameCount(Context_t *context __attribute__((unused)), unsigned long long int *frameCount)
{ {
int ret = cERR_LINUXDVB_NO_ERROR; int ret = cERR_LINUXDVB_NO_ERROR;
return ret; return ret;
@@ -746,7 +746,9 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding); free(Encoding);
} }
else else
{
linuxdvb_printf(20, "no context for Audio\n"); linuxdvb_printf(20, "no context for Audio\n");
}
} }
if (video && videofd != -1) if (video && videofd != -1)
{ {
@@ -795,7 +797,9 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding); free(Encoding);
} }
else else
{
linuxdvb_printf(20, "no context for Video\n"); linuxdvb_printf(20, "no context for Video\n");
}
} }
releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__); releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__);
} }

View File

@@ -749,7 +749,9 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding); free(Encoding);
} }
else else
{
linuxdvb_printf(20, "no context for Audio\n"); linuxdvb_printf(20, "no context for Audio\n");
}
} }
if (video && videofd != -1) if (video && videofd != -1)
{ {
@@ -798,7 +800,9 @@ int LinuxDvbSwitch(Context_t *context, char *type)
free(Encoding); free(Encoding);
} }
else else
{
linuxdvb_printf(20, "no context for Video\n"); linuxdvb_printf(20, "no context for Video\n");
}
} }
releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__); releaseLinuxDVBMutex(FILENAME, __FUNCTION__, __LINE__);
} }
@@ -898,7 +902,7 @@ static int Write(void *_context, void *_out)
call.FrameScale = out->timeScale; call.FrameScale = out->timeScale;
call.Width = out->width; call.Width = out->width;
call.Height = out->height; call.Height = out->height;
call.InfoFlags = out->infoFlags; call.InfoFlags = out->infoFlags;
call.Version = 0; // is unsingned char call.Version = 0; // is unsingned char
if (writer->writeData) if (writer->writeData)
{ {

View File

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

View File

@@ -83,7 +83,7 @@ if (debug_level >= level) printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x);
/* Types */ /* 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}; static const uint8_t Vc1FrameStartCode[] = {0, 0, 1, VC1_FRAME_START_CODE};
/* ***************************** */ /* ***************************** */