On Wed, 22 Jul 2009, Julien BLACHE wrote:

Peter Denison <bug-repo...@marshadder.org> wrote:

Done a bit more work on this (though still haven't managed to work out
how to debug properly!). Your patch now forces it to fail, as the
malloc() will always return an address which is 8-byte-aligned, but
not 16-byte aligned, due to the arena header.

Hmm, not good but not bad either if it becomes 100% reproducible ;)

The ebx value is 0x1000 greater than the value of handle->buffer, that
is assigned from the return from malloc(). It doesn't fail on the
first call to avcodec_decode_audio2() from _ssc_ffmpeg_read_frame(),
but on the second, repeatably.

If the problem lies in the output buffer alignment, then the first
frame doesn't get decoded in the same way, otherwise we'd see that
here too.

New patch attached, same as the previous one except it uses ffmpeg's
malloc() which will take care of the alignment.

So this one should really fix it, if we are having an alignment issue.

That seems to fix it. Many thanks. I will continue more exhaustive testing.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to