}
/* 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));