Skip to content

Commit

Permalink
Fix misc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stemidts authored and Thomas Davies committed Jan 17, 2018
1 parent 7ea45c1 commit e42047d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dec/getbits.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion enc/strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion enc/write_bits.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit e42047d

Please sign in to comment.