*/
#define MAX(a,b) ( (a)>(b) ? (a) : (b) )
+#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
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;
{
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
// 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;
//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.
else
if(do_stdin)
{
- unsigned char data[1024];
+ char data[1024];
nframes = 0x7fffffff;
fgets(data, 1024, stdin_fd);
// 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);