shithub: libvpx

Download patch

ref: 100ee65613aa6d6e5414bbfb014b66b35eeef1c7
parent: 32bcc4ae16230248c23b275ece619946171aa448
author: Jerome Jiang <jianj@google.com>
date: Mon Jan 14 10:46:04 EST 2019

clean up debug print.

printf -> assert(0 & ...)

Change-Id: I7bd6c0127ad816e8a5b555e86d54961b33da2bc4

--- a/vp9/encoder/vp9_encoder.h
+++ b/vp9/encoder/vp9_encoder.h
@@ -337,8 +337,7 @@
   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 @@
   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;
 }