From 100ee65613aa6d6e5414bbfb014b66b35eeef1c7 Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Mon, 14 Jan 2019 15:46:04 -0800 Subject: [PATCH] clean up debug print. printf -> assert(0 & ...) Change-Id: I7bd6c0127ad816e8a5b555e86d54961b33da2bc4 --- vp9/encoder/vp9_encoder.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vp9/encoder/vp9_encoder.h b/vp9/encoder/vp9_encoder.h index 18adfebfe..cb9ea2de2 100644 --- 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; } -- 2.40.0