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

Shubhanshu Saxena shubhanshu.e01 at gmail.com
Sat Jun 5 21:08:05 EEST 2021


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 at gmail.com>
---
 libavfilter/dnn/dnn_backend_common.h | 4 ++--
 1 file 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;
-- 
2.25.1



More information about the ffmpeg-devel mailing list