X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fmpeg2enc%2Fmpeg2enc.c;h=5452fb42e6e977b86473d77c29f1f7ba04febe24;hp=794cb12ec457b642e883c239d9a6e1e0c4227eca;hb=7e5a0760f40ff787cc3d93cb7768a901ebe52809;hpb=1f004d22ca7bd7a98a3bf02b12ec5b1adece92f2 diff --git a/cinelerra-5.1/mpeg2enc/mpeg2enc.c b/cinelerra-5.1/mpeg2enc/mpeg2enc.c index 794cb12e..5452fb42 100644 --- a/cinelerra-5.1/mpeg2enc/mpeg2enc.c +++ b/cinelerra-5.1/mpeg2enc/mpeg2enc.c @@ -28,6 +28,7 @@ */ #define MAX(a,b) ( (a)>(b) ? (a) : (b) ) +#include #include #include #include @@ -208,7 +209,7 @@ static uint8_t *bufalloc( size_t size ) static void init() { - int i, n, size; + int i, n; static int block_count_tab[3] = {6,8,12}; int lum_buffer_size, chrom_buffer_size; pthread_mutexattr_t mutex_attr; @@ -384,8 +385,6 @@ static void readcmdline(int argc, char *argv[]) { int i, j; int h,m,s,f; - FILE *fd; - char line[256]; // Master frame rate table must match decoder static double ratetab[]= {24000.0/1001.0, // Official rates @@ -407,7 +406,6 @@ static void readcmdline(int argc, char *argv[]) // VBV buffer size limits int vbvlim[4] = { 597, 448, 112, 29 }; long total_frame_rates = (sizeof(ratetab) / sizeof(double)); - FILE *proc; // Default 16 int param_searchrad = 16; int isnum = 1; @@ -443,8 +441,8 @@ static void readcmdline(int argc, char *argv[]) //printf("readcmdline 2\n"); - sprintf(tplorg, ""); - sprintf(out_path, ""); + sprintf(tplorg, "%s", ""); + sprintf(out_path, "%s", ""); #define INTTOYES(x) ((x) ? "Yes" : "No") // This isn't used anymore as this is a library entry point. @@ -706,7 +704,7 @@ INTTOYES(prog_seq)); else if(do_stdin) { - unsigned char data[1024]; + char data[1024]; nframes = 0x7fffffff; fgets(data, 1024, stdin_fd); @@ -822,7 +820,7 @@ INTTOYES(prog_seq)); // Show status if(verbose) { - printf("Encoding: %s frames %ld\n", out_path, nframes); + printf("Encoding: %s frames %d\n", out_path, nframes); if(fixed_mquant == 0) printf(" bitrate %.0f\n", bit_rate);