diff mbox series

[FFmpeg-devel,5/5] avutil/tests/pixelutils: Test that all non-hw pix fmts have components

Message ID GV1P250MB073711D6B284293F18DC251F8F529@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 9d52844aba797343e27ba6c35ca47aec459bdf22
Headers show
Series [FFmpeg-devel,1/5] avutil/pixdesc: Remove always-false checks | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 26, 2022, 7:58 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/tests/pixelutils.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavutil/tests/pixelutils.c b/libavutil/tests/pixelutils.c
index 2d9c4edc47..548ecb8801 100644
--- a/libavutil/tests/pixelutils.c
+++ b/libavutil/tests/pixelutils.c
@@ -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