g3dvl: Bad test, use proper picture height.
authorYounes Manton <younes.m@gmail.com>
Sat, 4 Oct 2008 19:38:12 +0000 (15:38 -0400)
committerYounes Manton <younes.m@gmail.com>
Fri, 17 Oct 2008 21:31:26 +0000 (17:31 -0400)
src/libXvMC/tests/xvmc_bench.c

index 16f6c21ae31a9ad07bbb28a058e7548c34034ad2..d5a39ecf17db0ce25f7e0f783b7da80d8b2abf20 100644 (file)
@@ -197,7 +197,7 @@ int main(int argc, char **argv)
        root = XDefaultRootWindow(display);
        window = XCreateSimpleWindow(display, root, 0, 0, config.output_width, config.output_height, 0, 0, colorkey);
 
-       assert(XvMCCreateContext(display, port_num, surface_type_id, config.input_width, config.input_width, XVMC_DIRECT, &context) == Success);
+       assert(XvMCCreateContext(display, port_num, surface_type_id, config.input_width, config.input_height, XVMC_DIRECT, &context) == Success);
        assert(XvMCCreateSurface(display, &context, &surface) == Success);
        assert(XvMCCreateBlocks(display, &context, mbw * mbh * BLOCKS_PER_MACROBLOCK, &block_array) == Success);
        assert(XvMCCreateMacroBlocks(display, &context, mbw * mbh, &mb_array) == Success);