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:
32bcc4a
)
clean up debug print.
author
Jerome Jiang
<jianj@google.com>
Mon, 14 Jan 2019 23:46:04 +0000
(15:46 -0800)
committer
Jerome Jiang
<jianj@google.com>
Mon, 14 Jan 2019 23:46:04 +0000
(15:46 -0800)
printf -> assert(0 & ...)
Change-Id: I7bd6c0127ad816e8a5b555e86d54961b33da2bc4
vp9/encoder/vp9_encoder.h
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_encoder.h
b/vp9/encoder/vp9_encoder.h
index
18adfeb
..
cb9ea2d
100644
(file)
--- a/
vp9/encoder/vp9_encoder.h
+++ b/
vp9/encoder/vp9_encoder.h
@@
-337,8
+337,7
@@
static INLINE int get_square_block_idx(BLOCK_SIZE bsize) {
if (bsize == BLOCK_32X32) {
return 3;
}
- printf("ERROR: non-square block size\n");
- assert(0);
+ assert(0 && "ERROR: non-square block size");
return -1;
}
@@
-355,8
+354,7
@@
static INLINE BLOCK_SIZE square_block_idx_to_bsize(int square_block_idx) {
if (square_block_idx == 3) {
return BLOCK_32X32;
}
- printf("ERROR: invalid square_block_idx\n");
- assert(0);
+ assert(0 && "ERROR: invalid square_block_idx");
return BLOCK_INVALID;
}