summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2013-03-28 09:23:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-28 09:23:20 -0700
commita8dd8ef3b0efb5f61931870bf5e8167e27dbf4be (patch)
tree98c4f7aac77d6351acd67219e360e8cc72b057af /media/libstagefright/codecs
parent2d0a2f5209ed5704512d41af239179aff30eca6e (diff)
parent49a8b409541eb090bf31761014d3bc9bd64b77bd (diff)
downloadframeworks_av-a8dd8ef3b0efb5f61931870bf5e8167e27dbf4be.zip
frameworks_av-a8dd8ef3b0efb5f61931870bf5e8167e27dbf4be.tar.gz
frameworks_av-a8dd8ef3b0efb5f61931870bf5e8167e27dbf4be.tar.bz2
am 49a8b409: am 5952255a: Merge "Fix valgrind error in software h264 decoder" into jb-mr2-dev
* commit '49a8b409541eb090bf31761014d3bc9bd64b77bd': Fix valgrind error in software h264 decoder
Diffstat (limited to 'media/libstagefright/codecs')
-rwxr-xr-xmedia/libstagefright/codecs/on2/h264dec/source/h264bsd_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/media/libstagefright/codecs/on2/h264dec/source/h264bsd_util.c b/media/libstagefright/codecs/on2/h264dec/source/h264bsd_util.c
index 53b2fd8..cc838fd 100755
--- a/media/libstagefright/codecs/on2/h264dec/source/h264bsd_util.c
+++ b/media/libstagefright/codecs/on2/h264dec/source/h264bsd_util.c
@@ -220,7 +220,7 @@ u32 h264bsdNextMbAddress(u32 *pSliceGroupMap, u32 picSizeInMbs, u32 currMbAddr)
/* Variables */
- u32 i, sliceGroup, tmp;
+ u32 i, sliceGroup;
/* Code */
@@ -231,11 +231,9 @@ u32 h264bsdNextMbAddress(u32 *pSliceGroupMap, u32 picSizeInMbs, u32 currMbAddr)
sliceGroup = pSliceGroupMap[currMbAddr];
i = currMbAddr + 1;
- tmp = pSliceGroupMap[i];
- while ((i < picSizeInMbs) && (tmp != sliceGroup))
+ while ((i < picSizeInMbs) && (pSliceGroupMap[i] != sliceGroup))
{
i++;
- tmp = pSliceGroupMap[i];
}
if (i == picSizeInMbs)