Skip to content

Commit 51a50f0

Browse files
committed
stagefright aacenc: Don't address a Word32 with a Word16 pointer
Currently, a pointer to a Word32 is used as a pointer to Word16, which doesn't work as intended on big endian architectures. This change needs to be analyzed and tested properly so that it doesn't cause issues with overflows in these variables. Another solution would be to change all the scf arrays to 32 bit instead. Change-Id: I53d9eb83bdaf8d3b1530eb5064dd10b08bce737a
1 parent b4cee0f commit 51a50f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static void assimilateSingleScf(PSY_OUT_CHANNEL *psyOutChan,
400400
Word16 *minScfCalculated,
401401
Flag restartOnSuccess)
402402
{
403-
Word32 sfbLast, sfbAct, sfbNext, scfAct, scfMin;
403+
Word16 sfbLast, sfbAct, sfbNext, scfAct, scfMin;
404404
Word16 *scfLast, *scfNext;
405405
Word32 sfbPeOld, sfbPeNew;
406406
Word32 sfbDistNew;

0 commit comments

Comments
 (0)