Permalink
Browse files

Fix misc warnings

  • Loading branch information...
stemidts authored and Thomas Davies committed Jan 17, 2018
1 parent 7ea45c1 commit e42047df2fef64310087296f2d1c29c041010320
Showing with 5 additions and 3 deletions.
  1. +1 −1 dec/getbits.h
  2. +1 −1 enc/strings.c
  3. +3 −1 enc/write_bits.c
@@ -37,7 +37,7 @@ typedef struct
unsigned int inbfr;
int incnt;
int bitcnt;
int length;
uint32_t length;
} stream_t;
int initbits_dec(FILE *infile, stream_t *str);
@@ -85,7 +85,7 @@ static char **read_config_file(FILE *f, int *num_of_params)
/* There is no double quote -> read next string */
if (ret2 == 0)
{
ret = fscanf(f, " %s", a);
ret = fscanf(f, " %1999s", a);
if (ret < 1 || ret == EOF)
break;
@@ -156,10 +156,12 @@ void write_coeff(stream_t *stream,int16_t *coeff,int size,int type)
int intra_flag = (type>>1)&1;
int vlc_adaptive = intra_flag && !chroma_flag;
unsigned int eob_pos = chroma_flag ? 0 : 2;
static int *zigzag[] = { 0, 0, zigzag16, zigzag64, zigzag256 };
static int *zigzag[] = { zigzag16, zigzag16, zigzag16, zigzag64, zigzag256 };
int *zigzagptr = zigzag[log2i(qsize)];
int runs = 0;
assert(size > 1);
/* Zigzag scan */
for (i = 0; i < qsize; i++)
for (j = 0; j < qsize; j++)

0 comments on commit e42047d

Please sign in to comment.