Skip to content

Commit

Permalink
fixup! Refactor and deduplicate colorspace logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 committed Jul 9, 2023
1 parent 6836c6e commit 8384904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_colorspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace video {

sunshine_colorspace_t
colorspace_from_rtsp_csc(int csc, bool hdr_requested, bool hdr_display) {
/* See video::config_t::encoderCscMode for details */

sunshine_colorspace_t colorspace;

// When HDR is active, that overrides the colorspace the client requested
Expand Down Expand Up @@ -62,8 +64,6 @@ namespace video {

avcodec_colorspace_t
avcodec_colorspace_from_sunshine_colorspace(const sunshine_colorspace_t &sunshine_colorspace) {
/* See video::config_t::encoderCscMode for details */

avcodec_colorspace_t avcodec_colorspace;

switch (sunshine_colorspace.colorspace) {
Expand Down

0 comments on commit 8384904

Please sign in to comment.