Skip to content

Commit 64c2263

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Small fix to MediaCodec"
2 parents 46f465c + 51656aa commit 64c2263

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

media/libstagefright/MediaCodec.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,8 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
673673

674674
int32_t nameIsType;
675675
int32_t encoder = false;
676-
if (!msg->findInt32("nameIsType", &nameIsType)) {
677-
nameIsType = false;
678-
} else {
676+
CHECK(msg->findInt32("nameIsType", &nameIsType));
677+
if (nameIsType) {
679678
CHECK(msg->findInt32("encoder", &encoder));
680679
}
681680

0 commit comments

Comments
 (0)