1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

fftools/ffmpeg: add alpha_mode support

The implementation exactly mirrors the existing plumbing for color_ranges
and color_spaces.
This commit is contained in:
Niklas Haas
2025-08-13 14:13:21 +02:00
parent 2e2ca4e740
commit f07573f496
5 changed files with 35 additions and 3 deletions

View File

@@ -274,6 +274,7 @@ int enc_open(void *opaque, const AVFrame *frame)
enc_ctx->color_primaries = frame->color_primaries;
enc_ctx->color_trc = frame->color_trc;
enc_ctx->colorspace = frame->colorspace;
enc_ctx->alpha_mode = frame->alpha_mode;
/* Video properties which are not part of filter graph negotiation */
if (enc_ctx->chroma_sample_location == AVCHROMA_LOC_UNSPECIFIED) {