Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavutil/tests/pixelutils.c | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.34.1

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to