/* needed for usleep() */
#define _XOPEN_SOURCE 600
-#include "config.h"
+#include <ffmpeg-config.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
return x->tv_sec < y->tv_sec;
}
+#ifdef CONFIG_FFMPEG_WITH_FRSH
frsh_vres_id_t disk_vres;
frsh_contract_t disk_contract;
-
+#endif
static void
print_timing(void)
printf("%5d: interframe interval = 1/%5.2lf s avg=1/%.2f stddev=1/%3.2f\n",
f, 1/ifi, 1/ifi_avg, 1/sqrt(ifi_var));
+#ifdef CONFIG_FFMPEG_WITH_FRSH
if (renegotiate == f)
frsh_contract_renegotiate_sync(&disk_contract, disk_vres);
+#endif
out:
start = end;
}
}
/* open the file */
- if (url_fopen(&oc->pb, filename, URL_WRONLY) < 0) {
+ if (url_fopen(&oc->pb, filename, URL_WRONLY|URL_DIRECT) < 0) {
fprintf(stderr, "Could not open '%s'\n", filename);
av_exit(1);
}
+
+ if (0) {
+ int i;
+ for (i=0; i<0x81; i++) {
+ put_le32(oc->pb, i);
+ if (i==0x42)
+ put_flush_packet(oc->pb);
+ }
+ url_close_buf(oc->pb);
+ url_fclose(oc->pb);
+ exit(0);
+ }
}
memset(ap, 0, sizeof(*ap));