summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-07-15 14:20:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-15 14:20:45 -0700
commit4378ace44b9de477608a6c2fbf7134bc0345555f (patch)
treebe6f1e331589e11ac7d0168f9c942b04d0dcde68
parentd75de03f90a17862b18a3d2404e7117d8c53dbbf (diff)
parent6fb40672ac0f0b2f479367fa0ba4e8944df06dad (diff)
downloadframeworks_av-4378ace44b9de477608a6c2fbf7134bc0345555f.zip
frameworks_av-4378ace44b9de477608a6c2fbf7134bc0345555f.tar.gz
frameworks_av-4378ace44b9de477608a6c2fbf7134bc0345555f.tar.bz2
Merge "Use unsigned char to store table of contents retrieved from XING header. Our compiler treats char default to unsigned (trygon-eng on master branch). If I force "signed char" for the table of contents array, some MediaFramework tests for VBR mp3 would fail."
-rw-r--r--media/libstagefright/XINGSeeker.cpp6
-rw-r--r--media/libstagefright/include/XINGSeeker.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/XINGSeeker.cpp b/media/libstagefright/XINGSeeker.cpp
index 0d0d6c2..2091381 100644
--- a/media/libstagefright/XINGSeeker.cpp
+++ b/media/libstagefright/XINGSeeker.cpp
@@ -24,8 +24,8 @@ namespace android {
static bool parse_xing_header(
const sp<DataSource> &source, off64_t first_frame_pos,
int32_t *frame_number = NULL, int32_t *byte_number = NULL,
- char *table_of_contents = NULL, int32_t *quality_indicator = NULL,
- int64_t *duration = NULL);
+ unsigned char *table_of_contents = NULL,
+ int32_t *quality_indicator = NULL, int64_t *duration = NULL);
// static
sp<XINGSeeker> XINGSeeker::CreateFromSource(
@@ -94,7 +94,7 @@ bool XINGSeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) {
static bool parse_xing_header(
const sp<DataSource> &source, off64_t first_frame_pos,
int32_t *frame_number, int32_t *byte_number,
- char *table_of_contents, int32_t *quality_indicator,
+ unsigned char *table_of_contents, int32_t *quality_indicator,
int64_t *duration) {
if (frame_number) {
*frame_number = 0;
diff --git a/media/libstagefright/include/XINGSeeker.h b/media/libstagefright/include/XINGSeeker.h
index d5a484e..ec5bd9b 100644
--- a/media/libstagefright/include/XINGSeeker.h
+++ b/media/libstagefright/include/XINGSeeker.h
@@ -37,7 +37,7 @@ private:
int32_t mSizeBytes;
// TOC entries in XING header. Skip the first one since it's always 0.
- char mTableOfContents[99];
+ unsigned char mTableOfContents[99];
XINGSeeker();