diff options
author | Marco Nelissen <marcone@google.com> | 2013-11-13 14:18:21 -0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2013-12-11 10:28:44 -0800 |
commit | 544ad2be674423238c47650d2c8588ba7dfc9ed2 (patch) | |
tree | 1167d14b0e345cd7ad6c2a415a7134c915507b86 /media/libmedia/Android.mk | |
parent | 35a9e7d49ff5ff99fedb0bf2a35c39f7ea5a2f9e (diff) | |
download | frameworks_av-544ad2be674423238c47650d2c8588ba7dfc9ed2.zip frameworks_av-544ad2be674423238c47650d2c8588ba7dfc9ed2.tar.gz frameworks_av-544ad2be674423238c47650d2c8588ba7dfc9ed2.tar.bz2 |
Better character set encoding detection
Id3 tags are supposed to be ISO-8859-1 or unicode, but often aren't.
To better detect the real encoding we now use ICU to detect possible
encodings for a given byte sequence, then apply additional heuristics
to determine the most likely one.
b/5564857
Change-Id: I53bc83b006433da5c2f2ccfcd770ddb3a26b64d0
Diffstat (limited to 'media/libmedia/Android.mk')
-rw-r--r-- | media/libmedia/Android.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libmedia/Android.mk b/media/libmedia/Android.mk index 56e7787..8aa54dc 100644 --- a/media/libmedia/Android.mk +++ b/media/libmedia/Android.mk @@ -44,7 +44,7 @@ LOCAL_SRC_FILES:= \ IAudioPolicyService.cpp \ MediaScanner.cpp \ MediaScannerClient.cpp \ - autodetect.cpp \ + CharacterEncodingDetector.cpp \ IMediaDeathNotifier.cpp \ MediaProfiles.cpp \ IEffect.cpp \ @@ -65,7 +65,7 @@ LOCAL_CFLAGS += -DSINGLE_STATE_QUEUE_INSTANTIATIONS='"SingleStateQueueInstantiat # Consider a separate a library for SingleStateQueueInstantiations. LOCAL_SHARED_LIBRARIES := \ - libui liblog libcutils libutils libbinder libsonivox libicuuc libexpat \ + libui liblog libcutils libutils libbinder libsonivox libicuuc libicui18n libexpat \ libcamera_client libstagefright_foundation \ libgui libdl libaudioutils @@ -77,6 +77,7 @@ LOCAL_C_INCLUDES := \ $(call include-path-for, graphics corecg) \ $(TOP)/frameworks/native/include/media/openmax \ external/icu4c/common \ + external/icu4c/i18n \ $(call include-path-for, audio-effects) \ $(call include-path-for, audio-utils) |