#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <sys/time.h>
-#include <unistd.h>
#include "config.h"
#include "dsputil.h"
+#include "libavutil/internal.h"
#include "libavutil/lfg.h"
+#include "libavutil/mem.h"
#include "libavutil/time.h"
#undef printf