1 Something wrong with code or bug in gcc?
2 With this "const" and -O2 optimization these structs were initialized only partially.
3 --- avifile-0.7-0.7.38/player/main.cpp.orig 2003-05-25 01:24:42.000000000 +0200
4 +++ avifile-0.7-0.7.38/player/main.cpp 2003-12-30 02:34:20.895903992 +0100
6 AviPlayerInitParams apip;
7 apip.x = apip.y = 0x7fffffff;
9 - static const avm::Args::Option sizesubopts[] =
10 + static avm::Args::Option sizesubopts[] =
12 { avm::Args::Option::INT, "w", "width", "window width", &apip.width, 8, 8192 },
13 { avm::Args::Option::INT, "h", "height", "window height", &apip.height, 2, 8192 },
15 { avm::Args::Option::NONE }
18 - static const avm::Args::Option opts[] =
19 + static avm::Args::Option opts[] =
21 { avm::Args::Option::BOOL, "a", "auto", "use autoquality for postprocessing", &apip.quiet },
22 { avm::Args::Option::SUBOPTIONS, "s", "size", "set windows size", (void*) &sizesubopts },