OSDN Git Service

Use default values when MPEG4 audio config parsing fails.
authorErik Rydgren <erik.rydgren@sonyericsson.com>
Mon, 19 Sep 2011 08:38:10 +0000 (10:38 +0200)
committerHenrik Baard <henrik.baard@sonymobile.com>
Mon, 19 Nov 2012 08:22:47 +0000 (09:22 +0100)
commit8af5fe5a2431522a7d30bc546dcd31c0c64db70c
tree0b99ecf940acc19dbe13036416000b900ea0681d
parentda33d66e68791d0bfeccebc8253a59467b5ef670
Use default values when MPEG4 audio config parsing fails.

MPEG4 audio packets may be multiplexed using the so called
LATM (Low Overhead Audio Transport Multiplex) scheme.
LATM parsing was recently introduced in Stagefright and it
has caused issues in cases when the LATM config element
cannot be parsed correctly. The main problem occurrs when
the AudioSpecificConfig part of the config element contains
more information than what is expected, causing the
frameLengthType parameter to get the wrong value. This fix
introduces default values of some config parameters that are
used in case config parsing fails.

Change-Id: I3cb35df76826f95ca0831dc08c2a1e7c6c2c586d
media/libstagefright/rtsp/AMPEG4AudioAssembler.cpp