ref: 19564b9ddc06c6dcd05953e91782694197f4d469
parent: bd45c003bbda02ba46e8854b48c07dea73e48ece
author: Harish Mahendrakar <harish.mahendrakar@ittiam.com>
date: Thu Apr 18 06:45:36 EDT 2019
[CFI] Remove function pointer cast of row_decode_worker_hook This fixes CFI error flagged for this function when row-mt=1 Change-Id: Ic5b427a6b621228280ebe829d00b540b18e2c087
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1839,8 +1839,9 @@
}
}
-static int row_decode_worker_hook(ThreadData *const thread_data,
- uint8_t **data_end) {
+static int row_decode_worker_hook(void *arg1, void *arg2) {
+ ThreadData *const thread_data = (ThreadData *)arg1;
+ uint8_t **data_end = (uint8_t **)arg2;
VP9Decoder *const pbi = thread_data->pbi;
VP9_COMMON *const cm = &pbi->common;
RowMTWorkerData *const row_mt_worker_data = pbi->row_mt_worker_data;
@@ -2303,7 +2304,7 @@
thread_data->pbi = pbi;
- worker->hook = (VPxWorkerHook)row_decode_worker_hook;
+ worker->hook = row_decode_worker_hook;
worker->data1 = thread_data;
worker->data2 = (void *)&row_mt_worker_data->data_end;
}