add binfolder path relative filters, fix gbrp color model, vwdw timebar tweaks, title...
[goodguy/history.git] / cinelerra-5.1 / mpeg2enc / mpeg2enc.c
index 794cb12ec457b642e883c239d9a6e1e0c4227eca..5452fb42e6e977b86473d77c29f1f7ba04febe24 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #define MAX(a,b) ( (a)>(b) ? (a) : (b) )
+#include <ctype.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -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);