summaryrefslogtreecommitdiff
path: root/lib/rbcodec/metadata/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/metadata/aac.c')
-rw-r--r--lib/rbcodec/metadata/aac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbcodec/metadata/aac.c b/lib/rbcodec/metadata/aac.c
index 358b2de079..372bab716e 100644
--- a/lib/rbcodec/metadata/aac.c
+++ b/lib/rbcodec/metadata/aac.c
@@ -93,11 +93,13 @@ bool get_aac_metadata(int fd, struct mp3entry *entry)
93 break; 93 break;
94 } 94 }
95 entry->bitrate = (unsigned int)((total * entry->frequency / frames + 64000) / 128000); 95 entry->bitrate = (unsigned int)((total * entry->frequency / frames + 64000) / 128000);
96#ifdef CODEC_AAC_SBR_DEC
96 if (entry->frequency <= 24000) 97 if (entry->frequency <= 24000)
97 { 98 {
98 entry->frequency <<= 1; 99 entry->frequency <<= 1;
99 entry->needs_upsampling_correction = true; 100 entry->needs_upsampling_correction = true;
100 } 101 }
102#endif
101 } 103 }
102 else 104 else
103 { 105 {