aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/parseutils.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-16 12:17:51 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-23 14:39:01 +0200
commit9246896f7778bc8002b08a36d004854bf1426fbf (patch)
tree73211f706f457c1e6d22a73995585399fe0efeba /libavutil/parseutils.c
parent99f29108d31b9e6fc9687a7401446097b31e9131 (diff)
downloadffmpeg-9246896f7778bc8002b08a36d004854bf1426fbf.tar.gz
parseutils: add FATE test.
Diffstat (limited to 'libavutil/parseutils.c')
-rw-r--r--libavutil/parseutils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index df737f6852..eae5584a92 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -31,6 +31,13 @@
#include "random_seed.h"
#include "parseutils.h"
+#ifdef TEST
+
+#define av_get_random_seed av_get_random_seed_deterministic
+static uint32_t av_get_random_seed_deterministic(void);
+
+#endif
+
int av_parse_ratio(AVRational *q, const char *str, int max,
int log_offset, void *log_ctx)
{
@@ -677,6 +684,13 @@ int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info
#ifdef TEST
+static uint32_t random = MKTAG('L','A','V','U');
+
+static uint32_t av_get_random_seed_deterministic(void)
+{
+ return random = random * 1664525 + 1013904223;
+}
+
#undef printf
int main(void)