Commit ac9da5db authored by Sam Hocevar's avatar Sam Hocevar
Browse files

* tools/checkasm.c: print the random seed used for the test, to allow for

    replays. It looks like dequant_4x4 fails 1 time out of 600, with the
    following seeds for instance: 1423 1957 2149 2455 3385 3403 3724 4095.


git-svn-id: svn://svn.videolan.org/x264/trunk@421 df754926-b1dd-0310-bc7b-ec298dee348c
parent bb21f3a9
......@@ -14,7 +14,7 @@
#include "common/ppc/mc.h"
#endif
/* buf1, buf2: initialised to randome data and shouldn't write into them */
/* buf1, buf2: initialised to random data and shouldn't write into them */
uint8_t * buf1, * buf2;
/* buf3, buf4: used to store output */
uint8_t * buf3, * buf4;
......@@ -526,7 +526,7 @@ int check_all( int cpu_ref, int cpu_new )
+ check_quant( cpu_ref, cpu_new );
}
int main()
int main(int argc, char *argv[])
{
int ret = 0;
int i;
......@@ -537,7 +537,9 @@ int main()
buf4 = x264_malloc( 1024 );
buf5 = x264_malloc( 1024 );
srand( x264_mdate() );
i = ( argc > 1 ) ? atoi(argv[1]) : x264_mdate();
fprintf( stderr, "x264: using random seed %u\n", i );
srand( i );
for( i = 0; i < 1024; i++ )
{
......
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