1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

avfilter: add alpha_mode consistency assertion

This commit is contained in:
Niklas Haas
2025-08-14 17:38:36 +02:00
parent 39631c99d4
commit 446a25b70f

View File

@@ -1081,6 +1081,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
av_assert1(frame->format == link->format);
av_assert1(frame->width == link->w);
av_assert1(frame->height == link->h);
if (av_pix_fmt_desc_get(link->format)->flags & AV_PIX_FMT_FLAG_ALPHA)
av_assert1(frame->alpha_mode == link->alpha_mode);
}
frame->sample_aspect_ratio = link->sample_aspect_ratio;