[fix] Fix NNS_TENSOR_SIZE_LIMIT check in collectpad
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 27 Dec 2022 04:56:10 +0000 (13:56 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 12 Jan 2023 10:24:17 +0000 (19:24 +0900)
- Fix assertion checking the NNS_TENSOR_SIZE_LIMIT

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api_impl.c

index d163590..102d775 100644 (file)
@@ -392,7 +392,7 @@ gst_tensor_time_sync_buffer_from_collectpad (GstCollectPads * collect,
           the negotiation should have been failed before this stage. */
       if (gst_tensors_config_is_static (&in_configs))
         g_assert (n_mem == in_configs.info.num_tensors);
-      g_assert ((counting + n_mem) < NNS_TENSOR_SIZE_LIMIT);
+      g_assert ((counting + n_mem) <= NNS_TENSOR_SIZE_LIMIT);
 
       if (gst_tensors_config_is_flexible (&in_configs))
         configs->info.format = _NNS_TENSOR_FORMAT_FLEXIBLE;