ref: 5e1ba6a2d50a232e07366b7337dbe2921bc2af26
parent: 2ecb122aacf1a604c8db6199e5cfe5a3824ae53a
author: Janne Grunau <[email protected]>
date: Tue Oct 9 18:35:16 EDT 2018
fix Av1FrameHeader.tiling.n_bytes sign compare warning
--- a/src/decode.c
+++ b/src/decode.c
@@ -2524,7 +2524,7 @@
} else {
if (f->frame_hdr.tiling.n_bytes > size) goto error;
tile_sz = 0;
- for (int k = 0; k < f->frame_hdr.tiling.n_bytes; k++)
+ for (unsigned k = 0; k < f->frame_hdr.tiling.n_bytes; k++)
tile_sz |= *data++ << (k * 8);
tile_sz++;
size -= f->frame_hdr.tiling.n_bytes;
--- a/src/levels.h
+++ b/src/levels.h
@@ -440,7 +440,7 @@
int refresh_context;
struct {
int uniform;
- int n_bytes;
+ unsigned n_bytes;
int min_log2_cols, max_log2_cols, log2_cols, cols;
int col_start_sb[1025];
int min_log2_rows, max_log2_rows, log2_rows, rows;