зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1828623 [Linux] Don't use std::min in vaapitest r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175801
This commit is contained in:
Родитель
b8255ea4a6
Коммит
831503ccc9
|
@ -199,7 +199,7 @@ void childvaapitest(const char* aRenderDevicePath) {
|
|||
record_error("VA-API test failed: vaQueryConfigProfiles() failed.");
|
||||
return;
|
||||
}
|
||||
numProfiles = std::min(numProfiles, maxProfiles);
|
||||
numProfiles = MIN(numProfiles, maxProfiles);
|
||||
|
||||
entryPoints = (VAEntrypoint*)malloc(sizeof(VAEntrypoint) * maxEntryPoints);
|
||||
int codecs = 0;
|
||||
|
@ -218,7 +218,7 @@ void childvaapitest(const char* aRenderDevicePath) {
|
|||
if (status != VA_STATUS_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
numEntryPoints = std::min(numEntryPoints, maxEntryPoints);
|
||||
numEntryPoints = MIN(numEntryPoints, maxEntryPoints);
|
||||
for (int entry = 0; entry < numEntryPoints; entry++) {
|
||||
if (entryPoints[entry] != VAEntrypointVLD) {
|
||||
continue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче