Fix inline assembly for clang

add r8, r0, asl #2
and
add r8, r8, r0, asl #2

are identical in gcc inline assembly, but clang accepts only the latter
variant.

Change-Id: I922367984b6ae2f7268ce99facaf8da425c39d7e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Add test for AMR-NB decoder

The test accepts a .amr file as input and dumps output PCM
in a wav file.

To run the test, use following command
libstagefright_amrnbdec_test <input amr> <output wav>

Change-Id: I2492c2ed4e670c9fd8cb4213201ccbd0cb9bf8fe
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Fix buffer allocation

b/15293123

Change-Id: Icb3ceabf02a55bc931baaf388ce125db6332de0e
Merge "Fix buffer allocation"
libmediaplayerservice: unused argument warning messages

Change-Id: I7dbf62858114ac9b8de6d7b66cc00e002769a5cf
Merge "libmediaplayerservice: unused argument warning messages"
DO NOT MERGE: Fix for SW video decoder OMX profile/level query

get the correct profile index from the input param and pass it to
profileLevel array to get the corresponding profile/level

Change-Id: I582961c0afb53c1781af7fb94226a23e5fdb96cf
Signed-off-by: Xiaosong Wei <xiaosong.wei@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Merge "DO NOT MERGE: Fix for SW video decoder OMX profile/level query"
h264_enc: Use free() to release memory allocated with malloc()

mInputFrameData and mSliceGroup are allocated memory with
malloc() but released using delete. Changed this to use free()
instead.

Change-Id: Iecf6684d97fabb2229d9abd94279a24faf9ac2d7
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
m4v_h263_enc: Use uint32_t for ULong

ULong is used in the encoder code as 32-bit unsigned integer type.
But it has been defined as an unsigned long, which will be 64-bit
on 64-bit platforms. This causes many problems including output
mismatch between 32-bit and 64-bit code and crash in certain cases.

This patch defines ULong as uint32_t. In addition, it uses uintptr_t
at places where an address is cast to an integer to check for alignment.

Change-Id: I2b0086824a5985b9fc4628ce6fbe81db156e37d2
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Merge "m4v_h263_enc: Use uint32_t for ULong"
Fix in SoftAVCEncoder plugin

size of buffer_handle_t, a pointer type, was assumed to be
4 bytes. This patch uses sizeof(buffer_handle_t) instead.

In addition, replaced magic number 4 with sizeof(OMX_U32)

Change-Id: Id5a7ed805a7b8e9867d8e51655cd334a66ac2c2b
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Switch frameworks/av/media/libmedia to the new icu.

Change-Id: I45349756bac6d89b02dba082ba6d606f4c489dcf
Merge "Switch frameworks/av/media/libmedia to the new icu."
Merge "h264_enc: Use free() to release memory allocated with malloc()"
Fix Externally reported security issue

bug: 12724697
Change-Id: I57f37dbb3b01c0c3d3256be67c395352dd6ada13
Merge "Fix Externally reported security issue"
Fix M3UParser relative path handling.

Bug: 16017037
Change-Id: Ibfff99387fb5b3e721144a2b3f9174092d785137
Merge "Fix M3UParser relative path handling."
M3UParser: check for NULL before setting meta data

Bug:16351654
Change-Id: I64e9510f719b220471522b4d78a9b00a98bda772