[vlc-commits] omxil: Fix a sanity check that only is relevant for video streams

Martin Storsjö git at videolan.org
Tue Dec 20 00:23:48 CET 2011


vlc/vlc-1.2 | branch: master | Martin Storsjö <martin at martin.st> | Mon Dec 19 17:03:01 2011 +0200| [bae66af57f0829dc9fdd36214971400047b7f88f] | committer: Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 9639b545847f2fc2fd7f87993134d72835627630)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=bae66af57f0829dc9fdd36214971400047b7f88f
---

 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,



More information about the vlc-commits mailing list