All pastes #613312 Raw Edit

Stuff

public diff v1 · immutable
·published 2007-07-10 22:21 UTC
rendered paste body
diff -ur x264_orig/x264.c x264/x264.c--- x264_orig/x264.c	Tue Jul 10 18:19:58 2007+++ x264/x264.c	Tue Jul 10 18:19:20 2007@@ -29,6 +29,8 @@ #include <string.h> #include <math.h> +#include <unistd.h>+ #include <signal.h> #define _GNU_SOURCE #include <getopt.h>@@ -49,6 +51,9 @@ uint8_t *mux_buffer = NULL; int mux_buffer_size = 0; +char *s_info[] = {NULL,NULL};+char wd[260];+ /* Ctrl-C handler */ static int     b_ctrl_c = 0; static int     b_exit_on_ctrl_c = 0;@@ -506,6 +511,7 @@                 opt->i_seek = atoi( optarg );                 break;             case 'o':+		s_info[1] = optarg;                 if( !strncasecmp(optarg + strlen(optarg) - 4, ".mp4", 4) )                 { #ifdef MP4_OUTPUT@@ -603,6 +609,8 @@         return -1;     }     psz_filename = argv[optind++];+    s_info[0] = psz_filename;+    getcwd(wd,260);      /* check demuxer type */     psz = psz_filename + strlen(psz_filename) - 1;@@ -759,6 +767,8 @@ {     x264_t *h;     x264_picture_t pic;+    FILE *fp;+    char fag[100];      int     i_frame, i_frame_total;     int64_t i_start, i_end;@@ -830,6 +840,11 @@                 fprintf( stderr, "encoded frames: %d/%d (%.1f%%), %.2f fps, eta %d:%02d:%02d  \r",                          i_frame, i_frame_total, (float)i_progress / 10, fps,                          eta/3600, (eta/60)%60, eta%60 );+		fp = fopen ("C:/x264.output","w");+		sprintf(fag,"%d,%d,%.2f,%d,%02d,%02d,%s,%s,%s",+		    i_frame,i_frame_total,fps,eta/3600,(eta/60)%60,eta%60,s_info[0],wd,s_info[1]);+		fputs (fag,fp);+		fclose (fp);             }             else                 fprintf( stderr, "encoded frames: %d, %.2f fps   \r", i_frame, fps );@@ -861,6 +876,7 @@         fprintf( stderr, "encoded %d frames, %.2f fps, %.2f kb/s\n", i_frame, fps,                  (double) i_file * 8 * param->i_fps_num /                  ( (double) param->i_fps_den * i_frame * 1000 ) );+	unlink("C:/x264.output");     }      return 0;