diff options
Diffstat (limited to 'lib/rbcodec/metadata/mp4.c')
-rw-r--r-- | lib/rbcodec/metadata/mp4.c | 8 |
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 | ||
212 | static bool read_mp4_esds(int fd, struct mp3entry* id3, uint32_t* size) | 212 | static 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); |