mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
opt-test: Merge struct declaration and initialization
This commit is contained in:
parent
d3044cf37f
commit
0d2fcdb1c5
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue