[FFmpeg-devel] need help--- "roamsave" crashs in libavcodec.so
buyit at live.cn
Sun Feb 26 16:25:02 CET 2012
thanks for your reply.
yes, if i use DECLARE_ALIGNED to declare the sig_scaled , then everything should be ok, but the question is :
1. the source code of latest libavcodec is without DECLARE_ALIGNED, do you mean this is a bug when people use this function on ARM Cortex-A9 chipset which has strict alignment check ？
2. i use the same libavcodec on two phones, both of which are ARM Cortex-A9 platform and support NEON instructions. it is ok on one phone, but crashs on another phone, how to explain this ?
> Date: Sun, 26 Feb 2012 16:02:22 +0100
> From: Reimar.Doeffinger at gmx.de
> To: ffmpeg-devel at ffmpeg.org
> Subject: Re: [FFmpeg-devel] need help--- "roamsave" crashs in libavcodec.so
> On Sun, Feb 26, 2012 at 09:24:18AM +0800, 卜弋天 wrote:
> > 3. sig_scaled is a buffer, the size of which is SUBFRAME_SIZE + RES_PREV_DATA_SIZE = 552 Bytes, i don't think compiler will arrange this buffer to align to 128 Bit(16 bytes).
> > so how can libavcodec use scalarproduct_int16 correctly? i am very confused about this.
> I suspect all that needs to be done is use DECLARE_LOCAL_ALIGNED for
> sig_scaled (and maybe some other buffers).
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
More information about the ffmpeg-devel