[libav-devel] [PATCH 8/8] hevcdsp: add x86 SIMD for MC

Anton Khirnov anton at khirnov.net
Thu Aug 20 12:39:41 CEST 2015


Quoting Anton Khirnov (2015-08-20 08:35:29)
> Quoting James Almer (2015-08-20 00:34:58)
> > On 19/08/15 4:43 PM, Anton Khirnov wrote:
> > > ---
> > >  libavcodec/hevc.c             |   6 +-
> > >  libavcodec/hevc.h             |   2 +-
> > >  libavcodec/hevcdsp.c          |  24 +-
> > >  libavcodec/hevcdsp.h          |   5 +-
> > >  libavcodec/hevcdsp_template.c |   8 +-
> > >  libavcodec/x86/Makefile       |   3 +-
> > >  libavcodec/x86/hevc_mc.asm    | 816 ++++++++++++++++++++++++++++++++++++++++++
> > >  libavcodec/x86/hevcdsp_init.c | 405 +++++++++++++++++++++
> > >  8 files changed, 1258 insertions(+), 11 deletions(-)
> > >  create mode 100644 libavcodec/x86/hevc_mc.asm
> > 
> > I'm getting segmentation faults with quite a few of samples.
> > For example http://www.elecard.com/assets/files/other/clips/bbb_1080p_c.ts
> 
> Cannot reproduce here. Can you give me more details (system, where
> exactly does it crash, etc.)?
> 

Nvm, seems the problem is in they way ints are passed on stack. gcc
zeroes the high bits, clang does not.

-- 
Anton Khirnov


More information about the libav-devel mailing list