[FFmpeg-devel] [PATCH] lavc: Add unit test for APV entropy decode

Michael Niedermayer michael at niedermayer.cc
Fri May 2 20:52:31 EEST 2025


On Wed, Apr 30, 2025 at 10:09:11PM +0100, Mark Thompson wrote:
> ---
> Cleaned up a bit from use earlier.  This program allows testing of changes to entropy decode in a form much easier to debug than a whole stream.
> 
> I had a more complete randomised test of transform here as well along with test code for checking intermediates, though it seems like the checkasm only might be preferred.  Can add it if useful.
> 
> Thanks,
> 
> - Mark
> 
>  libavcodec/Makefile       |   1 +
>  libavcodec/tests/apv.c    | 306 ++++++++++++++++++++++++++++++++++++++
>  tests/fate/libavcodec.mak |   5 +
>  3 files changed, 312 insertions(+)
>  create mode 100644 libavcodec/tests/apv.c

breaks make -j32 fate-apv

TEST    apv-422-10
--- /dev/null	2025-01-24 23:36:38.397802529 +0100
+++ tests/data/fate/apv-422-10	2025-05-02 19:49:42.277166925 +0200
@@ -0,0 +1,8 @@
+#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x180
+#sar 0: 1/1
+0,          0,          0,        1,   230400, 0x07f1e56d
+0,          1,          1,        1,   230400, 0x0bd1c913
+0,          2,          2,        1,   230400, 0xefd02824
Test apv-422-10 failed. Look at tests/data/fate/apv-422-10.err for details.
make: *** [tests/Makefile:317: fate-apv-422-10] Error 1

Note "make fate-apv-422-10" works

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is what and why we do it that matters, not just one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250502/3f8c2d7c/attachment.sig>


More information about the ffmpeg-devel mailing list