Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0abe031 authored by Songyue Han's avatar Songyue Han Committed by Automerger Merge Worker
Browse files

Merge "CodecCapabilities NDK: Fix implementation issues." into main am: 8ba47fe4 am: 5fe3e7de

parents bf45ea7b 5fe3e7de
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -52,7 +52,7 @@ int32_t AMediaCodecInfo_isVendor(const AMediaCodecInfo *info) {
    }
    }


    int32_t attributes = info->mInfo->getAttributes();
    int32_t attributes = info->mInfo->getAttributes();
    return (attributes & android::MediaCodecInfo::kFlagIsVendor);
    return (attributes & android::MediaCodecInfo::kFlagIsVendor) ? 1 : 0;
}
}


EXPORT
EXPORT
+1 −1
Original line number Original line Diff line number Diff line
@@ -210,7 +210,7 @@ extern "C" {
EXPORT
EXPORT
media_status_t AMediaCodecStore_getSupportedMediaTypes(
media_status_t AMediaCodecStore_getSupportedMediaTypes(
        const AMediaCodecSupportedMediaType **outMediaTypes, size_t *outCount) {
        const AMediaCodecSupportedMediaType **outMediaTypes, size_t *outCount) {
    if (outMediaTypes == nullptr) {
    if (outMediaTypes == nullptr || outCount == nullptr) {
        return AMEDIA_ERROR_INVALID_PARAMETER;
        return AMEDIA_ERROR_INVALID_PARAMETER;
    }
    }