summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Utils.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2014-07-30 17:25:06 -0700
committerChong Zhang <chz@google.com>2014-07-30 18:07:50 -0700
commite9e63bcf6c36351f1129b0bdc5e93f17f0f9f0b4 (patch)
treed48520e1b56036184891f9868fb045d20298d35f /media/libstagefright/Utils.cpp
parenta6d28be0be0fa813080a021bd6a5920a8cb4fbb1 (diff)
downloadframeworks_av-e9e63bcf6c36351f1129b0bdc5e93f17f0f9f0b4.zip
frameworks_av-e9e63bcf6c36351f1129b0bdc5e93f17f0f9f0b4.tar.gz
frameworks_av-e9e63bcf6c36351f1129b0bdc5e93f17f0f9f0b4.tar.bz2
handle rotation in NuPlayer
Bug: 16653284 Change-Id: I54165041da5a13498d627eee1b3ec59ef3c923b0
Diffstat (limited to 'media/libstagefright/Utils.cpp')
-rw-r--r--media/libstagefright/Utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/Utils.cpp b/media/libstagefright/Utils.cpp
index 750bff0..587e264 100644
--- a/media/libstagefright/Utils.cpp
+++ b/media/libstagefright/Utils.cpp
@@ -142,6 +142,11 @@ status_t convertMetaDataToMessage(
msg->setInt32("max-input-size", maxInputSize);
}
+ int32_t rotationDegrees;
+ if (meta->findInt32(kKeyRotation, &rotationDegrees)) {
+ msg->setInt32("rotation-degrees", rotationDegrees);
+ }
+
uint32_t type;
const void *data;
size_t size;