> > From 84ca9efab78e369ab9600305e93224d8f93aafa2 Mon Sep 17 00:00:00
> > 2001
> From: i-Amogh <[email protected]>
> Date: Tue, 21 Apr 2026 02:50:27 +0530
> Subject: [PATCH 2/3] avcodec/tests/codec2utils: Add FATE test for
>  codec2utils.h
> 
> Added a FATE test for the codec2 extradata utility functions
> (codec2_make_extradata and codec2_mode_from_extradata) defined in
> libavcodec/codec2utils.h.
> 
> The test verifies the correct packing and unpacking of the 4 byte
> metadata array across all valid modes (0 to CODEC2_MODE_MAX) . It
> also tests out of bounds modes (up to 15) to guarantee memory safety
> and forward compatibility with experimental wide band modes.
> 
> This achieves 100% coverage of the header's logic.
> 
> Signed-off-by: i-Amogh <[email protected]>
> ---
>  libavcodec/Makefile            |  1 +
>  libavcodec/tests/codec2utils.c | 37
> ++++++++++++++++++++++++++++++++++
>  tests/fate/libavcodec.mak      |  4 ++++
>  tests/ref/fate/codec2utils     | 16 +++++++++++++++
>  4 files changed, 58 insertions(+)
>  create mode 100644 libavcodec/tests/codec2utils.c
>  create mode 100644 tests/ref/fate/codec2utils

Looks good to me

/Tomas
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to