Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 617df152 authored by Martin Storsjo's avatar Martin Storsjo Committed by Android Git Automerger
Browse files

am 93eb01fd: stagefright aacenc: Add parentheses in expression with mixed && and ||

* commit '93eb01fd':
  stagefright aacenc: Add parentheses in expression with mixed && and ||
parents f78bb81e 93eb01fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -357,9 +357,9 @@ VO_U32 VO_API voAACEncSetParam(VO_HANDLE hCodec, VO_S32 uParamID, VO_PTR pData)
		if(config.sampleRate%8000 == 0)
			tmp =480;
		/* check the bitrate */
		if(config.bitRate!=0 && (config.bitRate/config.nChannelsOut < 4000) ||
		if(config.bitRate!=0 && ((config.bitRate/config.nChannelsOut < 4000) ||
           (config.bitRate/config.nChannelsOut > 160000) ||
		   (config.bitRate > config.sampleRate*6*config.nChannelsOut))
		   (config.bitRate > config.sampleRate*6*config.nChannelsOut)))
		{
			config.bitRate = 640*config.sampleRate/tmp*config.nChannelsOut;