aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/dnn
diff options
context:
space:
mode:
authorShubhanshu Saxena <shubhanshu.e01@gmail.com>2021-06-05 23:38:05 +0530
committerGuo Yejun <yejun.guo@intel.com>2021-06-12 15:18:58 +0800
commit6b961f74096aff114d32480670943ce4d6d66826 (patch)
tree43ad7e096f00575d1efe3d7bd723f7c4062eb5e8 /libavfilter/dnn
parent9675ebbb91891c826eeef065fd8a87d732f73ed0 (diff)
downloadffmpeg-6b961f74096aff114d32480670943ce4d6d66826.tar.gz
lavfi/dnn: Use uint8_t for async and do_ioproc in TaskItems
These properties have values either 0 or 1, so using uint8_t is a better option as compared to int. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
Diffstat (limited to 'libavfilter/dnn')
-rw-r--r--libavfilter/dnn/dnn_backend_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/dnn/dnn_backend_common.h b/libavfilter/dnn/dnn_backend_common.h
index 704cf921f1..d962312c16 100644
--- a/libavfilter/dnn/dnn_backend_common.h
+++ b/libavfilter/dnn/dnn_backend_common.h
@@ -33,8 +33,8 @@ typedef struct TaskItem {
AVFrame *out_frame;
const char *input_name;
const char **output_names;
- int async;
- int do_ioproc;
+ uint8_t async;
+ uint8_t do_ioproc;
uint32_t nb_output;
uint32_t inference_todo;
uint32_t inference_done;