ソースを参照

omx-il: fix building issue for gcc 12.2.0

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
Andy Hu 1 年間 前
コミット
d029d9650e
3 ファイル変更3 行追加4 行削除
  1. 1 1
      omx-il/tests/dec_test.c
  2. 1 2
      omx-il/tests/enc_test.c
  3. 1 1
      omx-il/tests/mjpeg_dec_test.c

+ 1 - 1
omx-il/tests/dec_test.c

@@ -333,7 +333,7 @@ int main(int argc, char **argv)
         }
     }
 
-    if (decodeTestContext->sInputFilePath == NULL || decodeTestContext->sOutputFilePath == NULL)
+    if (decodeTestContext == NULL)
     {
         help();
         return -1;

+ 1 - 2
omx-il/tests/enc_test.c

@@ -340,8 +340,7 @@ int main(int argc, char **argv)
     }
 
     encodeTestContext->nFrameBufferSize = width * height * 3 / 2;
-    if (encodeTestContext->sInputFilePath == NULL ||
-        encodeTestContext->sOutputFilePath == NULL ||
+    if (encodeTestContext == NULL ||
         encodeTestContext->nFrameBufferSize == 0 ||
         encodeTestContext->pInputFile == NULL)
     {

+ 1 - 1
omx-il/tests/mjpeg_dec_test.c

@@ -376,7 +376,7 @@ int main(int argc, char **argv)
         }
     }
 
-    if (decodeTestContext->sInputFilePath == NULL || decodeTestContext->sOutputFilePath == NULL)
+    if (decodeTestContext == NULL)
     {
         help();
         return -1;