[COV] metadata module, fix uninit warnings
Change-Id: Ifeb22642d7fb683542ff9dcfca0bc58c91ab5f38
This commit is contained in:
parent
ccdd9e6784
commit
2a88ec50cd
4 changed files with 9 additions and 9 deletions
|
@ -41,7 +41,7 @@ static const int sample_rates[] =
|
|||
|
||||
static bool check_adts_syncword(int fd)
|
||||
{
|
||||
uint16_t syncword;
|
||||
uint16_t syncword = 0;
|
||||
|
||||
read_uint16be(fd, &syncword);
|
||||
return (syncword & 0xFFF6) == 0xFFF0;
|
||||
|
|
|
@ -129,9 +129,9 @@ static int asf_intdecode(int fd, int type, int length)
|
|||
{
|
||||
int bytes = 0;
|
||||
int ret;
|
||||
uint16_t tmp16;
|
||||
uint32_t tmp32;
|
||||
uint64_t tmp64;
|
||||
uint16_t tmp16 = 0;
|
||||
uint32_t tmp32 = 0;
|
||||
uint64_t tmp64 = 0;
|
||||
|
||||
if (type == 3) {
|
||||
bytes = read_uint32le(fd, &tmp32);
|
||||
|
|
|
@ -98,7 +98,7 @@ int read_uint32be(int fd, uint32_t* buf)
|
|||
int read_uint64be(int fd, uint64_t* buf)
|
||||
{
|
||||
size_t n;
|
||||
uint8_t data[8];
|
||||
uint8_t data[8] = {0};
|
||||
int i;
|
||||
|
||||
n = read(fd, data, 8);
|
||||
|
|
|
@ -195,7 +195,7 @@ static unsigned int read_mp4_length(int fd, uint32_t* size)
|
|||
{
|
||||
unsigned int length = 0;
|
||||
int bytes = 0;
|
||||
unsigned char c;
|
||||
unsigned char c = '\0';
|
||||
|
||||
do
|
||||
{
|
||||
|
@ -211,7 +211,7 @@ static unsigned int read_mp4_length(int fd, uint32_t* size)
|
|||
|
||||
static bool read_mp4_esds(int fd, struct mp3entry* id3, uint32_t* size)
|
||||
{
|
||||
unsigned char buf[8];
|
||||
unsigned char buf[8] = {0};
|
||||
bool sbr = false;
|
||||
|
||||
lseek(fd, 4, SEEK_CUR); /* Version and flags. */
|
||||
|
@ -789,8 +789,8 @@ static bool read_mp4_container(int fd, struct mp3entry* id3,
|
|||
{
|
||||
/* ADDME: add support for real chapters. Right now it's only
|
||||
* used for Nero's gapless hack */
|
||||
uint8_t chapters;
|
||||
uint64_t timestamp;
|
||||
uint8_t chapters = 0;
|
||||
uint64_t timestamp = 0;
|
||||
|
||||
lseek(fd, 8, SEEK_CUR);
|
||||
read_uint8(fd, &chapters);
|
||||
|
|
Loading…
Reference in a new issue