[FFmpeg-devel] [PATCH] Tickets #3540 : build error with PIC and stack-check options

Anthoine Bourgeois anthoine.bourgeois at gmail.com
Wed Apr 9 12:18:32 CEST 2014


Hi,

The function dirac_get_arith_bit in libavcodec/dirac_arith.h can't be
built with PIC and check-stack because the asm code needs 6 registers
and PIC and check-stack options take 1 each and x86 is quite limited
in this area.
The patch attached adds a condition on HAVE_6REGS. HAVE_6REGS is false
in this configuration and then the C code is used instead.
I tested to build the version 1.2.6 but git master is affected too.

Regards,
Anthoine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-1.2.6-dirac_arith_h_6regs.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140409/39182a40/attachment.bin>


More information about the ffmpeg-devel mailing list