ref: bc739dceeb737226720146711b89e4381e63df3a
parent: 5f1d4f2725e15c90a309580a6b156bf681b7844b
author: Luc Trudeau <ltrudeau@twoorioles.com>
date: Mon Oct 1 12:00:56 EDT 2018
Remove compare between int and uint
--- a/src/env.h
+++ b/src/env.h
@@ -221,11 +221,11 @@
return 4;
} else {
// 4U means intra (-1) or bwd (>= 4)
- return 2 + (l->ref[0][yb4] >= 4U);
+ return 2 + ((unsigned)l->ref[0][yb4] >= 4U);
}
} else if (l->comp_type[yb4]) {
// 4U means intra (-1) or bwd (>= 4)
- return 2 + (a->ref[0][xb4] >= 4U);
+ return 2 + ((unsigned)a->ref[0][xb4] >= 4U);
} else {
return (l->ref[0][yb4] >= 4) ^ (a->ref[0][xb4] >= 4);
}
--- a/src/obu.c
+++ b/src/obu.c
@@ -50,7 +50,7 @@
#define DEBUG_SEQ_HDR 0
hdr->profile = get_bits(gb, 3);
- if (hdr->profile > 2U) goto error;
+ if (hdr->profile > 2) goto error;
#if DEBUG_SEQ_HDR
printf("SEQHDR: post-profile: off=%ld\n",
(gb->ptr - init_ptr) * 8 - gb->bits_left);