aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tests
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-04-12 19:51:13 -0300
committerJames Almer <jamrial@gmail.com>2024-04-23 23:54:46 -0300
commita9df9f95c43992d60c99cbd2f6bd28a104ed5d0b (patch)
treed00b2e56c98887346d9c926779a1041deaf8a840 /libavutil/tests
parentb91e3c4c908228901b1ec120d59ddf5a86c3b3b8 (diff)
downloadffmpeg-a9df9f95c43992d60c99cbd2f6bd28a104ed5d0b.tar.gz
avutil/test/opt: test the AV_OPT_SERIALIZE_SKIP_DEFAULTS flag
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/tests')
-rw-r--r--libavutil/tests/opt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/tests/opt.c b/libavutil/tests/opt.c
index ccf3a54f96..32301ba842 100644
--- a/libavutil/tests/opt.c
+++ b/libavutil/tests/opt.c
@@ -279,6 +279,11 @@ int main(void)
if (av_opt_serialize(&test_ctx, 0, 0, &buf, '=', ',') >= 0) {
printf("%s\n", buf);
av_free(buf);
+ if (av_opt_serialize(&test_ctx, 0, AV_OPT_SERIALIZE_SKIP_DEFAULTS, &buf, '=', ',') >= 0) {
+ if (strlen(buf))
+ printf("%s\n", buf);
+ av_free(buf);
+ }
}
}
av_opt_free(&test_ctx);