Commit 0d2fcdb1 authored by Diego Biurrun's avatar Diego Biurrun

opt-test: Merge struct declaration and initialization

parent d3044cf3
...@@ -801,7 +801,7 @@ static const AVClass test_class = { ...@@ -801,7 +801,7 @@ static const AVClass test_class = {
int main(void) int main(void)
{ {
int i; int i;
TestContext test_ctx; TestContext test_ctx = { .class = &test_class };
const char *options[] = { const char *options[] = {
"", "",
":", ":",
...@@ -824,8 +824,6 @@ int main(void) ...@@ -824,8 +824,6 @@ int main(void)
"rational=-1/0", "rational=-1/0",
}; };
test_ctx.class = &test_class;
printf("\nTesting av_set_options_string()\n"); printf("\nTesting av_set_options_string()\n");
av_opt_set_defaults(&test_ctx); av_opt_set_defaults(&test_ctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment