mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-29 22:20:24 +00:00
Populate color properties on the AVFrame
VideoToolbox reads them from the AVFrame instead of the AVCodecContext.
This commit is contained in:
parent
e9b529c46d
commit
3246428b7d
@ -1601,6 +1601,11 @@ namespace video {
|
||||
frame->format = ctx->pix_fmt;
|
||||
frame->width = ctx->width;
|
||||
frame->height = ctx->height;
|
||||
frame->color_range = ctx->color_range;
|
||||
frame->color_primaries = ctx->color_primaries;
|
||||
frame->color_trc = ctx->color_trc;
|
||||
frame->colorspace = ctx->colorspace;
|
||||
frame->chroma_location = ctx->chroma_sample_location;
|
||||
|
||||
// Attach HDR metadata to the AVFrame
|
||||
if (colorspace_is_hdr(colorspace)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user