[FFmpeg-devel] [PATCH 07/12] fftools/ffmpeg_enc: forward frame alpha mode to encoder

mypopy at gmail.com mypopy at gmail.com
Sat Feb 22 04:44:40 EET 2025


On Thu, Feb 20, 2025 at 4:56 AM Niklas Haas <ffmpeg at haasn.xyz> wrote:
>
> From: Niklas Haas <git at haasn.dev>
>
> ---
>  fftools/ffmpeg_enc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
> index a46af4dce1..18a0733773 100644
> --- a/fftools/ffmpeg_enc.c
> +++ b/fftools/ffmpeg_enc.c
> @@ -271,6 +271,7 @@ int enc_open(void *opaque, const AVFrame *frame)
>          enc_ctx->color_trc              = frame->color_trc;
>          enc_ctx->colorspace             = frame->colorspace;
>          enc_ctx->chroma_sample_location = frame->chroma_location;
> +        enc_ctx->alpha_mode             = frame->alpha_mode;
>
>          if (enc_ctx->flags & (AV_CODEC_FLAG_INTERLACED_DCT | AV_CODEC_FLAG_INTERLACED_ME) ||
>              (frame->flags & AV_FRAME_FLAG_INTERLACED)
> --
Looks good


More information about the ffmpeg-devel mailing list