0007-omx-il-Fix-warning-issue-for-new-glibc.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. From e335a0ec4a6bf6fe3b41c122fd3464731168be2a Mon Sep 17 00:00:00 2001
  2. From: Andy Hu <andy.hu@starfivetech.com>
  3. Date: Thu, 19 Jan 2023 19:20:03 +0800
  4. Subject: [PATCH] omx-il: Fix warning issue for new glibc
  5. ---
  6. omx-il/tests/dec_test.c | 10 +++++-----
  7. omx-il/tests/enc_test.c | 4 +---
  8. omx-il/tests/mjpeg_dec_test.c | 10 +++++-----
  9. 3 files changed, 11 insertions(+), 13 deletions(-)
  10. diff --git a/omx-il/tests/dec_test.c b/omx-il/tests/dec_test.c
  11. index cb56d18..afd3109 100644
  12. --- a/omx-il/tests/dec_test.c
  13. +++ b/omx-il/tests/dec_test.c
  14. @@ -333,11 +333,11 @@ int main(int argc, char **argv)
  15. }
  16. }
  17. - if (decodeTestContext->sInputFilePath == NULL || decodeTestContext->sOutputFilePath == NULL)
  18. - {
  19. - help();
  20. - return -1;
  21. - }
  22. + // if (decodeTestContext->sInputFilePath == NULL || decodeTestContext->sOutputFilePath == NULL)
  23. + // {
  24. + // help();
  25. + // return -1;
  26. + // }
  27. /*ffmpeg init*/
  28. printf("init ffmpeg\r\n");
  29. AVFormatContext *avContext = NULL;
  30. diff --git a/omx-il/tests/enc_test.c b/omx-il/tests/enc_test.c
  31. index 169945b..721b8d0 100644
  32. --- a/omx-il/tests/enc_test.c
  33. +++ b/omx-il/tests/enc_test.c
  34. @@ -340,9 +340,7 @@ int main(int argc, char **argv)
  35. }
  36. encodeTestContext->nFrameBufferSize = width * height * 3 / 2;
  37. - if (encodeTestContext->sInputFilePath == NULL ||
  38. - encodeTestContext->sOutputFilePath == NULL ||
  39. - encodeTestContext->nFrameBufferSize == 0 ||
  40. + if (encodeTestContext->nFrameBufferSize == 0 ||
  41. encodeTestContext->pInputFile == NULL)
  42. {
  43. help();
  44. diff --git a/omx-il/tests/mjpeg_dec_test.c b/omx-il/tests/mjpeg_dec_test.c
  45. index 17d0826..c827a59 100644
  46. --- a/omx-il/tests/mjpeg_dec_test.c
  47. +++ b/omx-il/tests/mjpeg_dec_test.c
  48. @@ -376,11 +376,11 @@ int main(int argc, char **argv)
  49. }
  50. }
  51. - if (decodeTestContext->sInputFilePath == NULL || decodeTestContext->sOutputFilePath == NULL)
  52. - {
  53. - help();
  54. - return -1;
  55. - }
  56. + // if (decodeTestContext->sInputFilePath == NULL || decodeTestContext->sOutputFilePath == NULL)
  57. + // {
  58. + // help();
  59. + // return -1;
  60. + // }
  61. if ((decodeTestContext->ScaleFactorH || decodeTestContext->ScaleFactorV) && decodeTestContext->Rotation)
  62. {
  63. printf("Invalid operation mode : Rotation cannot work with the scaler");
  64. --
  65. 2.36.0