projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c42d54c
)
vp8/decodeframe: fix signed/unsigned comparison
author
James Zern
<jzern@google.com>
Sat, 23 Jul 2016 18:41:52 +0000
(11:41 -0700)
committer
James Zern
<jzern@google.com>
Sat, 23 Jul 2016 18:41:52 +0000
(11:41 -0700)
quiets a visual studio warning
Change-Id: Ic7725616bc2cb837e6f79294d4fcff36b67af834
vp8/decoder/decodeframe.c
patch
|
blob
|
history
diff --git
a/vp8/decoder/decodeframe.c
b/vp8/decoder/decodeframe.c
index
c76418e
..
0aec2a0
100644
(file)
--- a/
vp8/decoder/decodeframe.c
+++ b/
vp8/decoder/decodeframe.c
@@
-798,7
+798,8
@@
static void setup_token_decoder(VP8D_COMP *pbi,
if (pbi->decoding_thread_count > num_token_partitions - 1) {
pbi->decoding_thread_count = num_token_partitions - 1;
}
- if (pbi->decoding_thread_count > pbi->common.mb_rows - 1) {
+ if ((int)pbi->decoding_thread_count > pbi->common.mb_rows - 1) {
+ assert(pbi->common.mb_rows > 0);
pbi->decoding_thread_count = pbi->common.mb_rows - 1;
}
#endif