Michael Niedermayer
8ab0b9caba
trasher: check seek return value.
...
Fixes CID733726
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
18d8825517
trasher: Include all the necessary headers
...
The missing headers are required for errno and for strerror.
This fixes building of this tool on mingw32ce.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
4e81b5f517
tools: K&R reformatting cosmetics
13 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
f19a068ef6
Add missing stdlib.h #include, fixes the warnings:
...
tools/trasher.c:44: warning: implicit declaration of function ‘atoi’
tools/trasher.c:53: warning: implicit declaration of function ‘abs’
Originally committed as revision 22328 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
5988dc9eec
Remove apparently unneeded define and includes.
...
Originally committed as revision 22229 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
47cf98efcb
Make trasher use a well defined random number generator and allow the seed to be specified on the cmd line.
...
Originally committed as revision 22228 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
6510c453ab
Add _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI
...
extensions of POSIX. Avoids implicit declaration warnings on some systems.
Originally committed as revision 18178 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Matthieu Castet
4a8361f848
tools/trasher: Don't mix srand/rand and srandom/random interface.
...
patch by matthieu castet, castet.matthieu free fr
Originally committed as revision 14222 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
c33820e52e
Add LGPL license header.
...
Originally committed as revision 11490 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Mike Melanson
90527811d7
Error checking: make sure that there are 3 parameters and that the
...
file open operation succeeds.
Originally committed as revision 11479 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
e36f0f03cc
Remove unused variable i.
...
Originally committed as revision 11474 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
0f340f8fc5
A little proggy i wrote years ago.
...
This simply writes burts of random data into a file. Great for testing error
robustness/resilience/concealment.
Originally committed as revision 11459 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago