[vlc-devel] Severe A/V asynchronous with hardware acceleration on android

XilasZ xilasz at gmail.com
Mon May 7 23:19:25 CEST 2012


> Anyway, I think the issue might be solved for you with the following
> change:
>
> diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
> index 80d327e..9ac4875 100644
> --- a/modules/codec/omxil/omxil.c
> +++ b/modules/codec/omxil/omxil.c
> @@ -460,6 +460,8 @@ static OMX_ERRORTYPE GetPortDefinition(decoder_t
> *p_dec, OmxPort *p_port,
>         omx_error = OMX_GetConfig(p_port->omx_**handle, OMX_**IndexConfigCommonOutputCrop,
> &crop_rect);
>         if (omx_error == OMX_ErrorNone)
>         {
> +            if (!def->format.video.**nSliceHeight)
> +                def->format.video.nSliceHeight = def->format.video.**
> nFrameHeight;
>             p_fmt->video.i_width = crop_rect.nWidth;
>             p_fmt->video.i_visible_width = crop_rect.nWidth;
>             p_fmt->video.i_height = crop_rect.nHeight;
>
> Please try that - if it works, I'll try to see if it works regression free
> on the other devices I've got access to.
>

It fixes the issue for me, image looks good again.

But it's still not usable on the OneX. Big a/v desync, video feed is
clearly below 25fps.
Also i got no images at all for some files which plays fine on the desire.

Anyway, with a regular 720p file, SW decoding is currently faster than HW
decoding, strange :p
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120507/9373e81a/attachment.html>


More information about the vlc-devel mailing list