Commit bae66af5 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

omxil: Fix a sanity check that only is relevant for video streams

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 9639b545)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ed6e8dbe
...@@ -1035,9 +1035,9 @@ static OMX_ERRORTYPE PortReconfigure(decoder_t *p_dec, OmxPort *p_port) ...@@ -1035,9 +1035,9 @@ static OMX_ERRORTYPE PortReconfigure(decoder_t *p_dec, OmxPort *p_port)
definition.nPortIndex = p_port->i_port_index; definition.nPortIndex = p_port->i_port_index;
omx_error = OMX_GetParameter(p_dec->p_sys->omx_handle, OMX_IndexParamPortDefinition, omx_error = OMX_GetParameter(p_dec->p_sys->omx_handle, OMX_IndexParamPortDefinition,
&definition); &definition);
if(omx_error != OMX_ErrorNone || if(omx_error != OMX_ErrorNone || (p_dec->fmt_in.i_cat == VIDEO_ES &&
!definition.format.video.nFrameWidth || (!definition.format.video.nFrameWidth ||
!definition.format.video.nFrameHeight ) !definition.format.video.nFrameHeight)) )
return OMX_ErrorUndefined; return OMX_ErrorUndefined;
omx_error = OMX_SendCommand( p_sys->omx_handle, OMX_CommandPortDisable, omx_error = OMX_SendCommand( p_sys->omx_handle, OMX_CommandPortDisable,
......
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