diff options
author | James Almer <jamrial@gmail.com> | 2024-04-12 19:51:13 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-04-23 23:54:46 -0300 |
commit | a9df9f95c43992d60c99cbd2f6bd28a104ed5d0b (patch) | |
tree | d00b2e56c98887346d9c926779a1041deaf8a840 /libavutil | |
parent | b91e3c4c908228901b1ec120d59ddf5a86c3b3b8 (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavutil/tests/opt.c | 5 |
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); |