summaryrefslogtreecommitdiff
path: root/lib/rbcodec/metadata/mp4.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-03-20 09:06:40 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2022-03-20 09:10:57 -0400
commit2a88ec50cd15cf454de99c69d1f7a120ee2368f3 (patch)
treeaa99220fb8a57cbdc40be749a44ab3304ba1bdb2 /lib/rbcodec/metadata/mp4.c
parentccdd9e6784c1aaee8ebb35f192dae647895c67bc (diff)
downloadrockbox-2a88ec50cd15cf454de99c69d1f7a120ee2368f3.tar.gz
rockbox-2a88ec50cd15cf454de99c69d1f7a120ee2368f3.zip
[COV] metadata module, fix uninit warnings
Change-Id: Ifeb22642d7fb683542ff9dcfca0bc58c91ab5f38
Diffstat (limited to 'lib/rbcodec/metadata/mp4.c')
-rw-r--r--lib/rbcodec/metadata/mp4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbcodec/metadata/mp4.c b/lib/rbcodec/metadata/mp4.c
index accc5cd662..19e6b515c7 100644
--- a/lib/rbcodec/metadata/mp4.c
+++ b/lib/rbcodec/metadata/mp4.c
@@ -195,7 +195,7 @@ static unsigned int read_mp4_length(int fd, uint32_t* size)
195{ 195{
196 unsigned int length = 0; 196 unsigned int length = 0;
197 int bytes = 0; 197 int bytes = 0;
198 unsigned char c; 198 unsigned char c = '\0';
199 199
200 do 200 do
201 { 201 {
@@ -211,7 +211,7 @@ static unsigned int read_mp4_length(int fd, uint32_t* size)
211 211
212static bool read_mp4_esds(int fd, struct mp3entry* id3, uint32_t* size) 212static bool read_mp4_esds(int fd, struct mp3entry* id3, uint32_t* size)
213{ 213{
214 unsigned char buf[8]; 214 unsigned char buf[8] = {0};
215 bool sbr = false; 215 bool sbr = false;
216 216
217 lseek(fd, 4, SEEK_CUR); /* Version and flags. */ 217 lseek(fd, 4, SEEK_CUR); /* Version and flags. */
@@ -789,8 +789,8 @@ static bool read_mp4_container(int fd, struct mp3entry* id3,
789 { 789 {
790 /* ADDME: add support for real chapters. Right now it's only 790 /* ADDME: add support for real chapters. Right now it's only
791 * used for Nero's gapless hack */ 791 * used for Nero's gapless hack */
792 uint8_t chapters; 792 uint8_t chapters = 0;
793 uint64_t timestamp; 793 uint64_t timestamp = 0;
794 794
795 lseek(fd, 8, SEEK_CUR); 795 lseek(fd, 8, SEEK_CUR);
796 read_uint8(fd, &chapters); 796 read_uint8(fd, &chapters);