0005-wave511-fix-the-warning-which-treated-as-error.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 7c64b3981f1fc12c47acd825831e0b633181bc63 Mon Sep 17 00:00:00 2001
  2. From: Andy Hu <andy.hu@starfivetech.com>
  3. Date: Thu, 19 Jan 2023 16:24:25 +0800
  4. Subject: [PATCH] wave511: fix the warning which treated as error
  5. ---
  6. wave511/wave511/sample_v2/helper/main_helper.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/wave511/wave511/sample_v2/helper/main_helper.c b/wave511/wave511/sample_v2/helper/main_helper.c
  9. index 4e3fb26..d812f8f 100644
  10. --- a/wave511/wave511/sample_v2/helper/main_helper.c
  11. +++ b/wave511/wave511/sample_v2/helper/main_helper.c
  12. @@ -2158,13 +2158,13 @@ void GenRegionToQpMap(
  13. int openRoiMapFile(TestEncConfig *encConfig)
  14. {
  15. if (encConfig->roi_enable) {
  16. - if (encConfig->roi_file_name) {
  17. + // if (encConfig->roi_file_name) {
  18. ChangePathStyle(encConfig->roi_file_name);
  19. if ((encConfig->roi_file = osal_fopen(encConfig->roi_file_name, "r")) == NULL) {
  20. VLOG(ERR, "fail to open ROI file, %s\n", encConfig->roi_file_name);
  21. return FALSE;
  22. }
  23. - }
  24. + // }
  25. }
  26. return TRUE;
  27. }
  28. --
  29. 2.36.0