Skip to content

Commit 9ba4a71

Browse files
committed
small tunes
1 parent d725cbd commit 9ba4a71

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/core/libraries/ajm/ajm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ u32 GetChannelMask(u32 num_channels) {
3636
case 8:
3737
return ORBIS_AJM_CHANNELMASK_7POINT1;
3838
default:
39-
return 0;
39+
UNREACHABLE();
4040
}
4141
}
4242

src/core/libraries/ajm/ajm_aac.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ void AjmAacDecoder::Reset() {
6969
break;
7070
case 7:
7171
asc.m_channelConfiguration = 11;
72+
break;
7273
case 8:
73-
asc.m_channelConfiguration = 14; // 7, 12 or 14 ?
74+
asc.m_channelConfiguration = 12; // 7, 12 or 14 ?
7475
break;
76+
default:
77+
UNREACHABLE();
7578
}
7679

7780
UCHAR changed = 1;
@@ -110,7 +113,7 @@ u32 AjmAacDecoder::GetMinimumInputSize() const {
110113
u32 AjmAacDecoder::GetNextFrameSize(const AjmInstanceGapless& gapless) const {
111114
const auto* const info = aacDecoder_GetStreamInfo(m_decoder);
112115
if (info->frameSize <= 0) {
113-
return 10;
116+
return 0;
114117
}
115118
const auto skip_samples = std::min<u32>(gapless.current.skip_samples, info->frameSize);
116119
const auto samples =

0 commit comments

Comments
 (0)