[FFmpeg-devel] [PATCH] Tickets #3540 : build error with PIC and stack-check options
Michael Niedermayer
michaelni at gmx.at
Wed Apr 9 19:48:19 CEST 2014
On Wed, Apr 09, 2014 at 12:18:32PM +0200, Anthoine Bourgeois wrote:
> 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
> dirac_arith.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 93c7ef21ff182e88f2fbcf5645c763ff6d86bfe7 ffmpeg-1.2.6-dirac_arith_h_6regs.patch
> diff -Npur ffmpeg-1.2.6.orig/libavcodec/dirac_arith.h ffmpeg-1.2.6/libavcodec/dirac_arith.h
> --- ffmpeg-1.2.6.orig/libavcodec/dirac_arith.h 2014-04-08 15:55:07.666501932 +0200
> +++ ffmpeg-1.2.6/libavcodec/dirac_arith.h 2014-04-08 16:08:04.404569134 +0200
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140409/711dfeab/attachment.asc>
More information about the ffmpeg-devel
mailing list