diff options
author | PacketVideo CM <engbuild@pv.com> | 2010-06-28 11:07:48 -0700 |
---|---|---|
committer | PacketVideo CM <engbuild@pv.com> | 2010-06-28 11:07:48 -0700 |
commit | 33d67e86419eaf74719f697cabeaea0621ffa414 (patch) | |
tree | e89fae4e8b5d3c1075bc28ff1e0063aded135d1d | |
parent | d7c1068f7c2044aacde3922dec25d76860847887 (diff) | |
download | opencore-33d67e86419eaf74719f697cabeaea0621ffa414.tar.gz |
RIO-9372: Fix the AMR parser logic for calculating seek offset
Change-Id: Ic018c7293b4abe2eefc26289cb676c67038a4760
-rw-r--r-- | engines/2way/src/pv_2way_sdkinfo.h | 4 | ||||
-rw-r--r-- | engines/author/src/pv_author_sdkinfo.h | 4 | ||||
-rw-r--r-- | engines/player/src/pv_player_sdkinfo.h | 4 | ||||
-rw-r--r-- | fileformats/audioparser/amr/src/pvmf_amr_parser.cpp | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/engines/2way/src/pv_2way_sdkinfo.h b/engines/2way/src/pv_2way_sdkinfo.h index 0ccbb3373..324247e42 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 "CORE_9.004.1.1" -#define PV2WAY_ENGINE_SDKINFO_DATE 0x20100623 +#define PV2WAY_ENGINE_SDKINFO_LABEL "1515505" +#define PV2WAY_ENGINE_SDKINFO_DATE 0x20100624 #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 faa678218..038513d24 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 "CORE_9.004.1.1" -#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100623 +#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1515505" +#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100624 #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 06a180e0b..4e34a8d01 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 "CORE_9.004.1.1" -#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100623 +#define PVPLAYER_ENGINE_SDKINFO_LABEL "1515505" +#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100624 #endif //PV_PLAYER_SDKINFO_H_INCLUDED diff --git a/fileformats/audioparser/amr/src/pvmf_amr_parser.cpp b/fileformats/audioparser/amr/src/pvmf_amr_parser.cpp index a1e03a348..d177d4d55 100644 --- a/fileformats/audioparser/amr/src/pvmf_amr_parser.cpp +++ b/fileformats/audioparser/amr/src/pvmf_amr_parser.cpp @@ -369,8 +369,8 @@ PVMFParserReturnCode PVMFAmrParser::Seek(int64 aSeekAt, int64& aSeekedTo) { LOG_DEBUG_MSG((0, "PVMFAmrParser::Seek() IN")); - // Use the bitrate and frame len to do the seek - OsclOffsetT offset = ((aSeekAt * ((iAmrBitrate + 7) / 8)) / 1000); + // Use the frame len to do the seek + OsclOffsetT offset = (aSeekAt * iAvgFrameLen) / TIME_STAMP_PER_FRAME; uint32 numFrames = offset / iAvgFrameLen; offset = iStartOffset + (numFrames * iAvgFrameLen); // Offset in Sync with frame boundaries |