[FFmpeg-cvslog] lavfi/dnn: Use uint8_t for async and do_ioproc in TaskItems

Shubhanshu Saxena git at videolan.org
Sat Jun 12 10:40:23 EEST 2021


ffmpeg | branch: master | Shubhanshu Saxena <shubhanshu.e01 at gmail.com> | Sat Jun  5 23:56:05 2021 +0530| [6b961f74096aff114d32480670943ce4d6d66826] | committer: Guo Yejun

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b961f74096aff114d32480670943ce4d6d66826
---

 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;



More information about the ffmpeg-cvslog mailing list