We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0862a56 commit 51656aaCopy full SHA for 51656aa
media/libstagefright/MediaCodec.cpp
@@ -673,9 +673,8 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
673
674
int32_t nameIsType;
675
int32_t encoder = false;
676
- if (!msg->findInt32("nameIsType", &nameIsType)) {
677
- nameIsType = false;
678
- } else {
+ CHECK(msg->findInt32("nameIsType", &nameIsType));
+ if (nameIsType) {
679
CHECK(msg->findInt32("encoder", &encoder));
680
}
681
0 commit comments