File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
110113u32 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 =
You can’t perform that action at this time.
0 commit comments