Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 committed May 27, 2024
1 parent fb913d6 commit 0119eae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/Limelight.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,16 +491,16 @@ typedef struct _CONNECTION_LISTENER_CALLBACKS {
void LiInitializeConnectionCallbacks(PCONNECTION_LISTENER_CALLBACKS clCallbacks);

// ServerCodecModeSupport values
#define SCM_H264 0x00001
#define SCM_H264_HIGH8_444 0x00004 // Sunshine extension
#define SCM_HEVC 0x00100
#define SCM_HEVC_MAIN10 0x00200
#define SCM_HEVC_REXT8_444 0x00400 // Sunshine extension
#define SCM_HEVC_REXT10_444 0x00800 // Sunshine extension
#define SCM_AV1_MAIN8 0x10000 // Sunshine extension
#define SCM_AV1_MAIN10 0x20000 // Sunshine extension
#define SCM_AV1_HIGH8_444 0x40000 // Sunshine extension
#define SCM_AV1_HIGH10_444 0x80000 // Sunshine extension
#define SCM_H264 0x00000001
#define SCM_HEVC 0x00000100
#define SCM_HEVC_MAIN10 0x00000200
#define SCM_AV1_MAIN8 0x00010000 // Sunshine extension
#define SCM_AV1_MAIN10 0x00020000 // Sunshine extension
#define SCM_H264_HIGH8_444 0x00040000 // Sunshine extension
#define SCM_HEVC_REXT8_444 0x00080000 // Sunshine extension
#define SCM_HEVC_REXT10_444 0x00100000 // Sunshine extension
#define SCM_AV1_HIGH8_444 0x00200000 // Sunshine extension
#define SCM_AV1_HIGH10_444 0x00400000 // Sunshine extension

// SCM masks to identify various codec capabilities
#define SCM_MASK_H264 (SCM_H264 | SCM_H264_HIGH8_444)
Expand Down
2 changes: 1 addition & 1 deletion src/SdpGenerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
err |= addAttributeString(&optionHead, "x-ss-general.encryptionEnabled", payloadStr);

// Enable YUV444 if requested
if (NegotiatedVideoFormat & SCM_MASK_YUV444) {
if (NegotiatedVideoFormat & VIDEO_FORMAT_MASK_YUV444) {
err |= addAttributeString(&optionHead, "x-ss-video[0].chromaSamplingType", "1");
}
else {
Expand Down

0 comments on commit 0119eae

Please sign in to comment.