aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-03-21 19:27:49 +0100
committerDiego Biurrun <diego@biurrun.de>2016-03-23 10:14:43 +0100
commit0d2fcdb1c5c9e844c232e5429130727121990d0e (patch)
tree76b92cbb50fbd6671df09a54fecdb6a318a99fc0
parentd3044cf37fcd9225788293baa719df68558288be (diff)
downloadffmpeg-0d2fcdb1c5c9e844c232e5429130727121990d0e.tar.gz
opt-test: Merge struct declaration and initialization
-rw-r--r--libavutil/opt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 168d3dce0d..f2e3e6d333 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -801,7 +801,7 @@ static const AVClass test_class = {
int main(void)
{
int i;
- TestContext test_ctx;
+ TestContext test_ctx = { .class = &test_class };
const char *options[] = {
"",
":",
@@ -824,8 +824,6 @@ int main(void)
"rational=-1/0",
};
- test_ctx.class = &test_class;
-
printf("\nTesting av_set_options_string()\n");
av_opt_set_defaults(&test_ctx);