Skip to content

Commit 7b7eabd

Browse files
Release v1.1.9 — HDR VUI BT.2020/PQ; include Opus decode guard (#54)
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8be1d80 commit 7b7eabd

3 files changed

Lines changed: 12 additions & 20 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.19)
22
set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
33

4-
set(MOONLIGHT_VERSION "1.1.8")
4+
set(MOONLIGHT_VERSION "1.1.9")
55

66
project(moonlight VERSION ${MOONLIGHT_VERSION} LANGUAGES C CXX)
77

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Thanks to everyone helping improve Aurora:
8484

8585
- [KrisEnigma](https://github.com/KrisEnigma) — UI polish and launcher fixes ([#41](https://github.com/GuiDev1994/aurora-tv/pull/41)[#49](https://github.com/GuiDev1994/aurora-tv/pull/49))
8686
- [danbrun](https://github.com/danbrun) — 5.1 surround channel mapping ([#50](https://github.com/GuiDev1994/aurora-tv/pull/50), [#55](https://github.com/GuiDev1994/aurora-tv/pull/55))
87+
- [mbenitez343](https://github.com/mbenitez343) — Opus decode guard to prevent mid-session audio loss ([#54](https://github.com/GuiDev1994/aurora-tv/pull/54))
8788

8889
## Credits
8990

src/app/stream/session.c

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -361,24 +361,15 @@ void session_config_init(app_t *app, session_config_t *config, const SERVER_DATA
361361
* @param config Moonlight stream configuration
362362
*/
363363
static void populate_hdr_info_vui(SS4S_VideoHDRInfo *info, const STREAM_CONFIGURATION *config) {
364-
switch (config->colorSpace) {
365-
case COLORSPACE_REC_601:
366-
info->colorPrimaries = 6 /* SMPTE 170M */;
367-
info->transferCharacteristics = 6 /* SMPTE 170M */;
368-
info->matrixCoefficients = 6 /* SMPTE 170M */;
369-
break;
370-
case COLORSPACE_REC_709:
371-
info->colorPrimaries = 1 /* BT.709 */;
372-
info->transferCharacteristics = 1 /* BT.709 */;
373-
info->matrixCoefficients = 1 /* BT.709 */;
374-
break;
375-
case COLORSPACE_REC_2020: {
376-
info->colorPrimaries = 9 /* BT.2020 */;
377-
info->transferCharacteristics = 16 /* SMPTE ST 2084 */;
378-
info->matrixCoefficients = 9 /* BT.2020 NCL */;
379-
break;
380-
}
381-
}
382-
info->videoFullRange = config->colorRange == COLOR_RANGE_FULL;
364+
(void) config;
365+
/*
366+
* HDR10 path only (called from streaming_set_hdr when hdr=true).
367+
* Always signal BT.2020 + PQ + limited range. Using negotiated Rec.709/601 here
368+
* on a PQ stream can skew skin/asphalt hues on webOS NDL (C5).
369+
*/
370+
info->colorPrimaries = 9 /* BT.2020 */;
371+
info->transferCharacteristics = 16 /* SMPTE ST 2084 */;
372+
info->matrixCoefficients = 9 /* BT.2020 NCL */;
373+
info->videoFullRange = 0;
383374
}
384375

0 commit comments

Comments
 (0)