Michael Niedermayer
e3481730ed
avutil/tests/opt: Check av_set_options_string() for failure
...
This is test code after all so it should test things
Fixes: CID1518990 Unchecked return value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 months ago
James Almer
d053290d8d
avutil/opt: add an unsigned option type
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
9902fc550a
avutil/tests/opt: test values > INT_MAX for INT64 type
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
72ac495960
avutil/tests/opt: test negative values for INT and INT64 types
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
8616cfe089
avutil/opt: add support for children objects in av_opt_serialize
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
855d4b5254
avutil/tests/opt: test av_opt_find2()
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
a9df9f95c4
avutil/test/opt: test the AV_OPT_SERIALIZE_SKIP_DEFAULTS flag
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
Anton Khirnov
efe4478778
lavu/opt: add array options
10 months ago
Anton Khirnov
1e7d2007c3
all: use designated initializers for AVOption.unit
...
Makes it robust against adding fields before it, which will be useful in
following commits.
Majority of the patch generated by the following Coccinelle script:
@@
typedef AVOption;
identifier arr_name;
initializer list il;
initializer list[8] il1;
expression tail;
@@
AVOption arr_name[] = { il, { il1,
- tail
+ .unit = tail
}, ... };
with some manual changes, as the script:
* has trouble with options defined inside macros
* sometimes does not handle options under an #else branch
* sometimes swallows whitespace
11 months ago
Anton Khirnov
f423497b45
lavu: support AVChannelLayout AVOptions
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Andreas Rheinhardt
4e135347a7
avutil/tests/opt: Set AVClass.version
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Marton Balint
a619787a9c
avutil/tests/opt: add av_opt_get/av_opt_set tests
...
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Marton Balint
672b925e8a
avutil/tests/opt: add tests for AV_OPT_TYPE_DICT
...
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Diego Biurrun
97cfe1d8bd
Convert all AVClass struct declarations to designated initializers.
8 years ago
Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago
Diego Biurrun
f2422b5875
testprogs: Mark some tables as static const
9 years ago
Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
...
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
9 years ago