[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#638250: Needs to be adapted for libav/0.7



tags 639948 +patch
thanks

Hi Lennart,

many thaks for your cooperation ;-)

* Lennart Sorensen [110904 17:03 -0400]:
> On Sun, Sep 04, 2011 at 04:13:52PM -0400, Lennart Sorensen wrote:
> > Are there any that don't experience it?
[...]
> 
> So it turns out it was reported to ffmpeg upstream 3 months ago and fixed already.
> 
> http://ffmpeg.org/trac/ffmpeg/ticket/272
> 
> The patch to libavcodec/ppc/asm.S is in comment #8.
> 
> It no longer segfaults for me with that patch applied.

I confirm that this patch works for me on my powerbook G4 as well.
Please find attached patch prepared for integrating to
debian/patches.

Elimar
-- 
    .~.
    /V\   L   I   N   U   X
   /( )\ >Phear the Penguin<
   ^^-^^
From: Elimar Riesebieter <riesebie@lxtec.de>
Subject: Fixes use of altivec flavor on PowerPC of libav-0.7
Origin: http://ffmpeg.org/trac/ffmpeg/ticket/272#comment:8
Bug: http://bugzilla.libav.org/show_bug.cgi?id=40
Forwarded: http://bugzilla.libav.org/show_bug.cgi?id=40
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639948


Thanks Lennart Sorensen for the hint ;-)


Index: libav-0.7.1/libavcodec/ppc/asm.S
===================================================================
--- libav-0.7.1.orig/libavcodec/ppc/asm.S	2011-07-21 10:47:51.000000000 +0200
+++ libav-0.7.1/libavcodec/ppc/asm.S	2011-09-05 00:12:47.645210696 +0200
@@ -67,7 +67,11 @@
 
 .macro movrel rd, sym
 #if CONFIG_PIC
-    lwz     \rd, \sym@got(r2)
+    bcl             20, 31, lab_pic_\@
+lab_pic_\@:
+    mflr    \rd
+    addis   \rd, \rd, (\sym - lab_pic_\@)@ha
+    addi    \rd, \rd, (\sym - lab_pic_\@)@l
 #else
     lis     \rd, \sym@ha
     la      \rd, \sym@l(\rd)

Attachment: signature.asc
Description: Digital signature


Reply to: