Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Fix compilation errors with strict MSVC settings
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod authored and RytoEX committed Mar 1, 2023
1 parent 3b09f2a commit 58b9ade
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/api-d3d11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

#pragma once
#include <atlutil.h>
#include <atlcomcli.h>
#include <d3d11.h>
#include <dxgi.h>
#include <map>
Expand Down
2 changes: 1 addition & 1 deletion include/api-d3d9.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

#pragma once
#include <atlutil.h>
#include <atlcomcli.h>
#include <d3d9.h>
#include "api-base.hpp"

Expand Down
4 changes: 2 additions & 2 deletions include/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ extern "C" {

#ifndef LITE_OBS
#define PLOG(level, ...) blog(level, "[AMF] " __VA_ARGS__)
#define PLOG_ERROR(format, ...) PLOG(LOG_ERROR, format, __VA_ARGS__)
#define PLOG_ERROR(format, ...) PLOG(LOG_ERROR, format, ##__VA_ARGS__)
#define PLOG_VAR(var) var
#else
#define PLOG(...) (void)0
#define PLOG_ERROR(format, ...) printf("[AMF] " format "\n", __VA_ARGS__)
#define PLOG_ERROR(format, ...) printf("[AMF] " format "\n", ##__VA_ARGS__)
#define PLOG_VAR(var)
#endif
#define PLOG_WARNING(...) PLOG(LOG_WARNING, __VA_ARGS__)
Expand Down
2 changes: 1 addition & 1 deletion source/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ Plugin::AMD::ProfileLevel Utility::H265ProfileLevel(std::pair<uint32_t, uint32_t
level(ProfileLevel::L52, levelRestriction(8912896, 1069547520)),
level(ProfileLevel::L60, levelRestriction(35651584, 1069547520)),
level(ProfileLevel::L61, levelRestriction(35651584, 2139095040)),
level(ProfileLevel::L62, levelRestriction(35651584, 4278190080)),
level(ProfileLevel::L62, levelRestriction(35651584, 4278190080u)),
level((ProfileLevel)-1, levelRestriction(0, 0))};

uint32_t samples = resolution.first * resolution.second;
Expand Down

0 comments on commit 58b9ade

Please sign in to comment.