Commit 346d9c47 authored by Martin Storsjö's avatar Martin Storsjö Committed by Rafaël Carré

omxil/mediacodec: Extend the quirk workaround for OMX.SEC to ignore horizontal padding as well

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent e7eb8964
......@@ -486,6 +486,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;
......
......@@ -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 ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment