aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorywan171 <yi.a.wang@intel.com>2014-07-24 10:11:07 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-29 21:37:37 -0700
commit3f7ceee13aa17ae32d4263aed2ce67eb9a37c58b (patch)
tree8c0270a6938f4c4818ad1cad5f6194c381d394ce /utils
parent59642e7640703b5c0df95dd4111121e95b8f3161 (diff)
downloadwrs_omxil_core-3f7ceee13aa17ae32d4263aed2ce67eb9a37c58b.tar.gz
remove the warning in wrs_corelollipop-dev
BZ: 209178 remove the warning in wrs_core Signed-off-by: ywan171 <yi.a.wang@intel.com> Change-Id: I5655dcc283325cf7da5e0b088887e63cd24fb056 Signed-off-by: ywan171 <yi.a.wang@intel.com> Reviewed-on: https://android.intel.com/220500 Reviewed-by: Fourdan, Olivier <olivier.fourdan@intel.com> Tested-by: Fourdan, Olivier <olivier.fourdan@intel.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/src/Android.mk1
-rw-r--r--utils/src/audio_parser.c7
2 files changed, 3 insertions, 5 deletions
diff --git a/utils/src/Android.mk b/utils/src/Android.mk
index 8d6a86d..72885da 100644
--- a/utils/src/Android.mk
+++ b/utils/src/Android.mk
@@ -22,5 +22,6 @@ LOCAL_SHARED_LIBRARIES :=
LOCAL_C_INCLUDES := \
$(WRS_OMXIL_CORE_ROOT)/utils/inc
+LOCAL_CFLAGS += -Werror
include $(BUILD_STATIC_LIBRARY)
diff --git a/utils/src/audio_parser.c b/utils/src/audio_parser.c
index f8fc8bd..564a7b2 100644
--- a/utils/src/audio_parser.c
+++ b/utils/src/audio_parser.c
@@ -326,9 +326,7 @@ static inline int mp3_calculate_frame_length(int bitrate, int samplingrate,
* FIXME
* - It's hard coded for version 1, layer 3
*/
-static inline int mp3_calculate_frame_duration(int version,
- int layer,
- int frequency)
+static inline int mp3_calculate_frame_duration(int frequency)
{
return 1152 * 1000 / frequency;
}
@@ -400,8 +398,7 @@ int mp3_header_parse(const unsigned char *buffer,
*mode_extension = header.mode_extension;
*frame_length = mp3_calculate_frame_length(*bitrate, *frequency,
*layer, header.padding_bit);
- *frame_duration = mp3_calculate_frame_duration(*version, *layer,
- *frequency);
+ *frame_duration = mp3_calculate_frame_duration(*frequency);
LOGV("mp3 frame header\n");
LOGV(" sync: 0x%x\n", header.sync);