Index: source/libvpx/vp9/encoder/vp9_ethread.c |
diff --git a/source/libvpx/vp9/encoder/vp9_ethread.c b/source/libvpx/vp9/encoder/vp9_ethread.c |
index 00025b7a1984927e5d2db9f23f7529f8c971b91b..adb3fd8e87a2f188a281d22ad43b290b30a33227 100644 |
--- a/source/libvpx/vp9/encoder/vp9_ethread.c |
+++ b/source/libvpx/vp9/encoder/vp9_ethread.c |
@@ -67,7 +67,7 @@ void vp9_encode_tiles_mt(VP9_COMP *cpi) { |
VP9_COMMON *const cm = &cpi->common; |
const int tile_cols = 1 << cm->log2_tile_cols; |
const VPxWorkerInterface *const winterface = vpx_get_worker_interface(); |
- const int num_workers = MIN(cpi->oxcf.max_threads, tile_cols); |
+ const int num_workers = VPXMIN(cpi->oxcf.max_threads, tile_cols); |
int i; |
vp9_init_tile_data(cpi); |
@@ -80,7 +80,7 @@ void vp9_encode_tiles_mt(VP9_COMP *cpi) { |
// resolution. |
if (cpi->use_svc) { |
int max_tile_cols = get_max_tile_cols(cpi); |
- allocated_workers = MIN(cpi->oxcf.max_threads, max_tile_cols); |
+ allocated_workers = VPXMIN(cpi->oxcf.max_threads, max_tile_cols); |
} |
CHECK_MEM_ERROR(cm, cpi->workers, |