Skip to content

Commit ce4de8d

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "stagefright aacenc: Add parentheses in expression with mixed && and ||"
2 parents 60b3d59 + f4e7ff9 commit ce4de8d

File tree

1 file changed

+2
-2
lines changed
  • media/libstagefright/codecs/aacenc/src

1 file changed

+2
-2
lines changed

media/libstagefright/codecs/aacenc/src/aacenc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ VO_U32 VO_API voAACEncSetParam(VO_HANDLE hCodec, VO_S32 uParamID, VO_PTR pData)
357357
if(config.sampleRate%8000 == 0)
358358
tmp =480;
359359
/* check the bitrate */
360-
if(config.bitRate!=0 && (config.bitRate/config.nChannelsOut < 4000) ||
360+
if(config.bitRate!=0 && ((config.bitRate/config.nChannelsOut < 4000) ||
361361
(config.bitRate/config.nChannelsOut > 160000) ||
362-
(config.bitRate > config.sampleRate*6*config.nChannelsOut))
362+
(config.bitRate > config.sampleRate*6*config.nChannelsOut)))
363363
{
364364
config.bitRate = 640*config.sampleRate/tmp*config.nChannelsOut;
365365

0 commit comments

Comments
 (0)