vlc | branch: master | Martin Storsjö <[email protected]> | 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ö <[email protected]> > 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; } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
