Browse Source

aac channels wrong calculation - release

Philippe G 4 years ago
parent
commit
b6aa8f9e96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/squeezelite/helix-aac.c

+ 1 - 1
components/squeezelite/helix-aac.c

@@ -156,7 +156,7 @@ static int read_mp4_header(unsigned long *samplerate_p, unsigned char *channels_
 			info.sampRateCore = (*ptr++ & 0x07) << 1;
 			info.sampRateCore |= (*ptr >> 7) & 0x01;
 			info.sampRateCore = rates[info.sampRateCore];
-			info.nChans = *ptr >> 3;
+			info.nChans = (*ptr & 0x7f) >> 3;
 			*channels_p = info.nChans;
 			*samplerate_p = info.sampRateCore;
 			HAAC(a, SetRawBlockParams, a->hAac, 0, &info);