diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-26 21:42:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-30 14:33:08 +0200 |
commit | 9d52844aba797343e27ba6c35ca47aec459bdf22 (patch) | |
tree | 6a0bef8e08410b48785d7e3c95b228ca6b715551 /libavutil/tests | |
parent | 36e805e9df012c20641fac5914a058f9c5ae15fd (diff) | |
download | ffmpeg-9d52844aba797343e27ba6c35ca47aec459bdf22.tar.gz |
avutil/tests/pixelutils: Test that all non-hw pix fmts have components
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/tests')
-rw-r--r-- | libavutil/tests/pixelutils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/tests/pixelutils.c b/libavutil/tests/pixelutils.c index e1b7dd19b2..f5ddeb329d 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 |