Bladeren bron

sf-omx-il-test: Set output width and height parameters

Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com>
sw.multimedia 2 jaren geleden
bovenliggende
commit
6d4879821d
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      soft_3rdpart/omx-il/tests/dec_test.c

+ 2 - 0
soft_3rdpart/omx-il/tests/dec_test.c

@@ -324,6 +324,8 @@ int main(int argc, char *argv)
     OMX_INIT_STRUCTURE(pOutputPortDefinition);
     pOutputPortDefinition.nPortIndex = 1;
     OMX_GetParameter(decodeTestContext->hComponentDecoder, OMX_IndexParamPortDefinition, &pOutputPortDefinition);
+    pOutputPortDefinition.format.video.nFrameWidth = codecParameters->width;
+    pOutputPortDefinition.format.video.nFrameHeight = codecParameters->height;
     if (strstr(decodeTestContext->sOutputFormat, "nv12") != NULL)
     {
         pOutputPortDefinition.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar;