This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Make the selftesting code use and compileable.
Originally committed as revision 14433 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer
17 years ago
parent
3df136d438
commit
b6ff078b7b
2 changed files
with
3 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-5
libavutil/random.c
+0
-3
libavutil/random.h
+ 3
- 5
libavutil/random.c
View File
@@ -28,9 +28,7 @@ see http://en.wikipedia.org/wiki/Mersenne_twister for an explanation of this alg
#include <stdio.h>
#include "random.h"
//#define DEBUG
#ifdef DEBUG
#ifdef TEST
#include "common.h"
#include "log.h"
#endif
@@ -81,8 +79,8 @@ void av_random_generate_untempered_numbers(AVRandomState *state)
state->index = 0;
}
#ifdef
DEBUG
void
av_benchmark_random
(void)
#ifdef
TEST
void
main
(void)
{
int x=0;
int i, j;
+ 0
- 3
libavutil/random.h
View File
@@ -63,7 +63,4 @@ static inline double av_random_real1(AVRandomState *state)
return av_random(state) * (1.0 / 4294967296.0);
}
// only available if DEBUG is defined in the .c file
void av_benchmark_random(void);
#endif /* FFMPEG_RANDOM_H */
Write
Preview
Loading…
Cancel
Save