Commit a35232ca authored by Martin Storsjö's avatar Martin Storsjö

omxil: Clear the stride and slice height before setting port params on raspberry pi

This fixes cases where the OMX decoder previously errored out,
when decoding videos with odd resolutions.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent c163daed
......@@ -180,6 +180,15 @@ static OMX_ERRORTYPE ImplementationSpecificWorkarounds(decoder_t *p_dec,
}
}
#endif
#ifdef RPI_OMX
else if (!strcmp(p_sys->psz_component, "OMX.broadcom.video_decode"))
{
/* Clear these fields before setting parameters, to allow the codec
* fill in what it wants (instead of rejecting whatever happened to
* be there. */
def->format.video.nStride = def->format.video.nSliceHeight = 0;
}
#endif
return OMX_ErrorNone;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment