[vlc-devel] [PATCH 3/6] omxil: Fix a sanity check that only is relevant for video streams

Martin Storsjö martin at martin.st
Mon Dec 19 16:03:01 CET 2011


---
 modules/codec/omxil/omxil.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 56a0c52..763a35e 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -1035,9 +1035,9 @@ static OMX_ERRORTYPE PortReconfigure(decoder_t *p_dec, OmxPort *p_port)
     definition.nPortIndex = p_port->i_port_index;
     omx_error = OMX_GetParameter(p_dec->p_sys->omx_handle, OMX_IndexParamPortDefinition,
                                  &definition);
-    if(omx_error != OMX_ErrorNone ||
-       !definition.format.video.nFrameWidth ||
-       !definition.format.video.nFrameHeight )
+    if(omx_error != OMX_ErrorNone || (p_dec->fmt_in.i_cat == VIDEO_ES &&
+       (!definition.format.video.nFrameWidth ||
+       !definition.format.video.nFrameHeight)) )
         return OMX_ErrorUndefined;
 
     omx_error = OMX_SendCommand( p_sys->omx_handle, OMX_CommandPortDisable,
-- 
1.7.2.5




More information about the vlc-devel mailing list