[FFmpeg-devel] [PATCH] Fix segmentation fault when encoding CODEC_ID_PCM_F32BE frames

Stefano Sabatini stefano.sabatini-lala
Sat Aug 9 12:40:47 CEST 2008


Hi all,

this fixes segfaults in the PCM regression tests.

This seems due to the compiler (gcc 4.2) getting confused by this snippet:

    {
        int32_t *samples = samples;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        for(;n>0;n--) {
            register int32_t v = *samples++ + 0;
            bytestream_put_be32(&dst, v);
        }
    }

I'm not sure this is the right fix though.

Regards.
-- 
FFmpeg = Foolish and Fast Mastering Proud Excellent Gangster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pcm-segv-00.patch
Type: text/x-diff
Size: 495 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080809/71495c16/attachment.patch>



More information about the ffmpeg-devel mailing list