diff options
author | Leo Izen <leo.izen@gmail.com> | 2023-11-27 09:10:08 -0500 |
---|---|---|
committer | Leo Izen <leo.izen@gmail.com> | 2023-12-05 05:54:58 -0500 |
commit | b60d39fbe2b30225e504ea9e0dc8c30c78683c90 (patch) | |
tree | 709fe57f6894fcdb17421d1b7cf84f7906d1fc92 /tests | |
parent | c4be080e65a37cac5ef8ce6ba7a9e1a59cb9b7dd (diff) | |
download | ffmpeg-b60d39fbe2b30225e504ea9e0dc8c30c78683c90.tar.gz |
fate/jpegxl: add parser test for extboxes and small files
Add a fate test for the above commits fixing extremely small files or
files with extended box sizes.
Signed-off-by: Leo Izen <leo.izen@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/jxl.mak | 8 | ||||
-rw-r--r-- | tests/ref/fate/jxl-small-ext-box | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/fate/jxl.mak b/tests/fate/jxl.mak index 057d3be0e1..d653eb644a 100644 --- a/tests/fate/jxl.mak +++ b/tests/fate/jxl.mak @@ -14,3 +14,11 @@ FATE_JPEGXL_ANIM_DEMUX += $(FATE_JPEGXL_ANIM_DEMUX-yes) FATE_SAMPLES_FFMPEG-$(call FRAMECRC, JPEGXL_ANIM) += $(FATE_JPEGXL_ANIM_DEMUX) fate-jxl-anim-demux: $(FATE_JPEGXL_ANIM_DEMUX) + +# parser tests +FATE_JPEGXL_PARSE += fate-jxl-small-ext-box +fate-jxl-small-ext-box: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/l.jxl -c copy + +FATE_JPEGXL_PARSE += $(FATE_JPEGXL_PARSE-yes) +FATE_SAMPLES_FFMPEG-$(call FRAMECRC, IMAGE_JPEGXL_PIPE, , JPEGXL_PARSER) += $(FATE_JPEGXL_PARSE) +fate-jxl-parse: $(FATE_JPEGXL_PARSE) diff --git a/tests/ref/fate/jxl-small-ext-box b/tests/ref/fate/jxl-small-ext-box new file mode 100644 index 0000000000..0f9adfe075 --- /dev/null +++ b/tests/ref/fate/jxl-small-ext-box @@ -0,0 +1,9 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: jpegxl +#dimensions 0: 8x8 +#sar 0: 0/1 +0, 0, 0, 1, 104, 0xd12d1d10 +0, 1, 1, 1, 104, 0xd12d1d10 +0, 2, 2, 1, 104, 0xd12d1d10 +0, 3, 3, 1, 104, 0xd12d1d10 |