diff mbox series

[FFmpeg-devel,V2,4/5] lavfi/dnn: Use uint8_t for async and do_ioproc in TaskItems

Message ID 20210605180806.65831-4-shubhanshu.e01@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,V2,1/5] 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 June 5, 2021, 6:08 p.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;