Skip to content

Commit

Permalink
To do: to clean up
Browse files Browse the repository at this point in the history
Change-Id: Icb33a37025064a865a0c0c0c1848a95b5215f72e
  • Loading branch information
bahusoid committed Sep 20, 2024
1 parent ce72b97 commit 4f27fcc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/target/arm/as3525/sd-as3525.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static int sd_transfer_sectors(IF_MD(int drive,) unsigned long start,
const int drive = 0;
#endif
bool aligned = !((uintptr_t)buf & (CACHEALIGN_SIZE - 1));
int retry_all = 10;
int retry_all = 1000;
int const retry_data_max = 2;
int retry_data = retry_data_max;
unsigned int real_numblocks;
Expand Down
4 changes: 4 additions & 0 deletions lib/rbcodec/metadata/aac.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ bool get_aac_metadata(int fd, struct mp3entry *entry)
entry->needs_upsampling_correction = true;
}
}
else
{
return false;
}
entry->length = (unsigned long)((entry->filesize * 8LL + (entry->bitrate >> 1)) / entry->bitrate);

return true;
Expand Down
2 changes: 1 addition & 1 deletion lib/rbcodec/metadata/metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] =
AFMT_ENTRY("ALAC", "alac", NULL, get_mp4_metadata, "m4a\0m4b\0"),
/* Advanced Audio Coding in M4A container */
[AFMT_MP4_AAC] =
AFMT_ENTRY("AAC", "aac", NULL, get_mp4_metadata, "mp4\0"),
AFMT_ENTRY("AAC", "aac", NULL, get_mp4_metadata, "mp4\0aac\0"),
/* Shorten */
[AFMT_SHN] =
AFMT_ENTRY("SHN","shorten", NULL, get_shn_metadata, "shn\0"),
Expand Down

0 comments on commit 4f27fcc

Please sign in to comment.