[vlc-devel] [PATCH 3/4] omxil/mediacodec: Extend the quirk workaround for OMX.SEC to ignore horizontal padding as well
Martin Storsjö
martin at martin.st
Wed Jan 30 11:54:07 CET 2013
---
modules/codec/omxil/android_mediacodec.c | 1 +
modules/codec/omxil/omxil.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index e8df410..c092a39 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -478,6 +478,7 @@ static void GetOutput(decoder_t *p_dec, JNIEnv *env, picture_t **pp_pic, int loo
if (!strncmp(p_sys->name, "OMX.SEC.", strlen("OMX.SEC.")) &&
!strstr(p_sys->name, ".Decoder")) {
p_sys->slice_height = 0;
+ p_sys->stride = p_dec->fmt_out.video.i_width;
}
continue;
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index bf3526f..09ae1e8 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -521,8 +521,10 @@ static OMX_ERRORTYPE GetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
* at least in the pre-4.0 firmwares). Thus, we enable this quirk on
* any OMX.SEC. decoder that doesn't contain the string ".Decoder". */
if(!strncmp(p_sys->psz_component, "OMX.SEC.", strlen("OMX.SEC.")) &&
- !strstr(p_sys->psz_component, ".Decoder"))
+ !strstr(p_sys->psz_component, ".Decoder")) {
def->format.video.nSliceHeight = 0;
+ def->format.video.nStride = p_fmt->video.i_width;
+ }
if(!GetVlcVideoFormat( def->format.video.eCompressionFormat,
&p_fmt->i_codec, 0 ) )
--
1.7.10.4
More information about the vlc-devel
mailing list