[vlc-commits] omxil: Clear the stride and slice height before setting port params on raspberry pi
Martin Storsjö
git at videolan.org
Fri Mar 22 17:10:28 CET 2013
vlc | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 22 11:06:13 2013 +0200| [a35232ca193c7a4baf9d7da95845b4ffc6044516] | committer: 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: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a35232ca193c7a4baf9d7da95845b4ffc6044516
---
modules/codec/omxil/omxil.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index eff2375..bad3ad1 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -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;
}
More information about the vlc-commits
mailing list