1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avutil/tests/pixelutils: Test that all non-hw pix fmts have components

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-09-26 21:42:31 +02:00
parent 36e805e9df
commit 9d52844aba

View File

@ -47,6 +47,7 @@ static void check_pixfmt_descriptors(void)
av_assert0(d->log2_chroma_w <= 3);
av_assert0(d->log2_chroma_h <= 3);
av_assert0(d->nb_components <= 4);
av_assert0(d->nb_components || (d->flags & AV_PIX_FMT_FLAG_HWACCEL));
av_assert0(av_get_pix_fmt(d->name) == av_pix_fmt_desc_get_id(d));
/* The following two checks as well as the one after the loop