diff mbox series

[FFmpeg-devel,4/5] avutil/tests/pixelutils: Use av_assert0 instead for test tools

Message ID GV1P250MB073785D244C66517D7FDDD548F529@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 36e805e9df012c20641fac5914a058f9c5ae15fd
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
These are test tools, so they should be picky.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/tests/pixelutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavutil/tests/pixelutils.c b/libavutil/tests/pixelutils.c
index 6e5e8cf738..2d9c4edc47 100644
--- a/libavutil/tests/pixelutils.c
+++ b/libavutil/tests/pixelutils.c
@@ -47,7 +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_assert2(av_get_pix_fmt(d->name) == av_pix_fmt_desc_get_id(d));
+        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
          * would need to be changed if we changed the way the descriptors