From 1f89d615f5c200797ace82d4c1db452ef8810dc0 Mon Sep 17 00:00:00 2001 From: PacketVideo CM Date: Tue, 13 Oct 2009 22:40:33 -0700 Subject: [PATCH] RIO-7687: Limit the max size of album art to 3 megs. --- android/metadatadriver.cpp | 4 +++- engines/2way/src/pv_2way_sdkinfo.h | 4 ++-- engines/author/src/pv_author_sdkinfo.h | 4 ++-- engines/player/src/pv_player_sdkinfo.h | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/android/metadatadriver.cpp b/android/metadatadriver.cpp index b5b89890..7413a84e 100644 --- a/android/metadatadriver.cpp +++ b/android/metadatadriver.cpp @@ -28,7 +28,9 @@ using namespace android; -const char* MetadataDriver::ALBUM_ART_KEY = "graphic"; +// Limit max size of album art to 3M +// If album art exceeds the max, dont truncate, return nothing. +const char* MetadataDriver::ALBUM_ART_KEY = "graphic;maxsize=3000000;truncate=false"; const char* MetadataDriver::METADATA_KEYS[NUM_METADATA_KEYS] = { "tracknumber", diff --git a/engines/2way/src/pv_2way_sdkinfo.h b/engines/2way/src/pv_2way_sdkinfo.h index d80d99e9..c4d3edce 100644 --- a/engines/2way/src/pv_2way_sdkinfo.h +++ b/engines/2way/src/pv_2way_sdkinfo.h @@ -21,7 +21,7 @@ // This header file is automatically generated at build-time // *** OFFICIAL RELEASE INFO -- Will not auto update -#define PV2WAY_ENGINE_SDKINFO_LABEL "1003281" -#define PV2WAY_ENGINE_SDKINFO_DATE 0x20091006 +#define PV2WAY_ENGINE_SDKINFO_LABEL "1005236" +#define PV2WAY_ENGINE_SDKINFO_DATE 0x20091007 #endif //PV_2WAY_SDKINFO_H_INCLUDED diff --git a/engines/author/src/pv_author_sdkinfo.h b/engines/author/src/pv_author_sdkinfo.h index c80766ed..d2402e34 100644 --- a/engines/author/src/pv_author_sdkinfo.h +++ b/engines/author/src/pv_author_sdkinfo.h @@ -21,7 +21,7 @@ // This header file is automatically generated at build-time // *** OFFICIAL RELEASE INFO -- Will not auto update -#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1003281" -#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20091006 +#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1005236" +#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20091007 #endif //PV_AUTHOR_SDKINFO_H_INCLUDED diff --git a/engines/player/src/pv_player_sdkinfo.h b/engines/player/src/pv_player_sdkinfo.h index 1c2147b6..9bdb7f1b 100644 --- a/engines/player/src/pv_player_sdkinfo.h +++ b/engines/player/src/pv_player_sdkinfo.h @@ -21,7 +21,7 @@ // This header file is automatically generated at build-time // *** OFFICIAL RELEASE INFO -- Will not auto update -#define PVPLAYER_ENGINE_SDKINFO_LABEL "1003281" -#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20091006 +#define PVPLAYER_ENGINE_SDKINFO_LABEL "1005236" +#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20091007 #endif //PV_PLAYER_SDKINFO_H_INCLUDED -- 2.11.0