diff mbox series

[FFmpeg-devel,04/10] lavfi/dnn: Use uint8_t for async and do_ioproc in TaskItems

Message ID 20210528092454.31874-4-shubhanshu.e01@gmail.com
State Superseded
Headers show
Series [FFmpeg-devel,01/10] lavfi/dnn: Extract TaskItem and InferenceItem from OpenVino Backend | expand


Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Shubhanshu Saxena May 28, 2021, 9:24 a.m. UTC
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>
 libavfilter/dnn/dnn_backend_common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series


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;