diff options
author | Jan Ekström <jeebjp@gmail.com> | 2023-03-19 15:00:33 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2024-03-20 19:14:02 +0200 |
commit | 53335f6cf42fc9f627a29663c2df6daacd891161 (patch) | |
tree | 9c70fc0e84b3d34556c1913be923cd24190258ec /tests | |
parent | d2bb22f6d5c1f44951e074f84233e1c8249dbad3 (diff) | |
download | ffmpeg-53335f6cf42fc9f627a29663c2df6daacd891161.tar.gz |
avutil/frame: add helper for adding side data to array
Additionally, add an API test to check that the no-duplicates
addition works after duplicates have been inserted.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/libavutil.mak | 4 | ||||
-rw-r--r-- | tests/ref/fate/side_data_array | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/fate/libavutil.mak b/tests/fate/libavutil.mak index 80153f4395..6bf03b2438 100644 --- a/tests/fate/libavutil.mak +++ b/tests/fate/libavutil.mak @@ -148,6 +148,10 @@ FATE_LIBAVUTIL += fate-sha512 fate-sha512: libavutil/tests/sha512$(EXESUF) fate-sha512: CMD = run libavutil/tests/sha512$(EXESUF) +FATE_LIBAVUTIL += fate-side_data_array +fate-side_data_array: libavutil/tests/side_data_array$(EXESUF) +fate-side_data_array: CMD = run libavutil/tests/side_data_array$(EXESUF) + FATE_LIBAVUTIL += fate-tree fate-tree: libavutil/tests/tree$(EXESUF) fate-tree: CMD = run libavutil/tests/tree$(EXESUF) diff --git a/tests/ref/fate/side_data_array b/tests/ref/fate/side_data_array new file mode 100644 index 0000000000..7d8c684d8f --- /dev/null +++ b/tests/ref/fate/side_data_array @@ -0,0 +1,14 @@ +Initial addition results with duplicates: +sd 0, Ambient viewing environment +sd 1, Content light level metadata: MaxCLL: 1 +sd 2, Content light level metadata: MaxCLL: 2 +sd 3, Content light level metadata: MaxCLL: 3 +sd 4, Spherical Mapping +sd 5, Content light level metadata: MaxCLL: 4 +sd 6, Content light level metadata: MaxCLL: 5 +sd 7, Content light level metadata: MaxCLL: 6 + +Final state after a single 'no-duplicates' addition: +sd 0, Ambient viewing environment +sd 1, Spherical Mapping +sd 2, Content light level metadata: MaxCLL: 1337 |