OSDN Git Service

Don't use size_t for variables that store uint32_t value
authorAshok Bhat <ashok.bhat@arm.com>
Tue, 4 Mar 2014 21:13:52 +0000 (21:13 +0000)
committerAshok Bhat <ashok.bhat@arm.com>
Thu, 6 Mar 2014 11:33:20 +0000 (11:33 +0000)
commit58fad0bf141109f1aed820f4d57985c116e05b61
tree70b75126205a465548a1213cf7c47bf66a57dcc2
parent2383f2200ab0c2dbd71708b5c1fb6af98db408fa
Don't use size_t for variables that store uint32_t value

The local variables width, height, displayWidth and
displayHeight are set to the corresponding members
of VideoFrame class. As the members of VideoFrame are
uint32_t, the local variables have been changed to
uint32_t.

As these local variables are passed to a java method,
the change of size_t to uint32_t ensures that the size
of the actual parameter (i.e uint32_t) is now same as
the size of the formal parameter (i.e. jint) for all
platforms.

Change-Id: Icd14de0142bfd4e6ba52a3e6aff3d80b323a0de4
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
media/jni/android_media_MediaMetadataRetriever.cpp