[PORT FROM MAIN] Avoid mediaserver crash when the sample size in stsz is invalid

BZ: 68835

When the sample size in the stsz table is invalid (3GB for example),
it will cause the mediaserver crash. A threshold is used here to
avoid mediaserver allocate too big memory (like 3GB). The threshold
is set as the size limit of the Intel decoder's input port.

Change-Id: Ic3126c17775da385f2fd8aa483d1c208e7fae908
Signed-off-by: wfeng6 <wei.feng@intel.com>
Reviewed-on: http://android.intel.com:8080/76404
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
2 files changed