Ticket #314 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

Perian 1.1 tries to use Altivec on G3 processors, crashes

Reported by: jhf Assigned to:
Priority: normal Milestone:
Component: Perian-Main Version: 1.1
Severity: normal Keywords:
Cc: jfannin@gmail.com

Description

After installing Perian 1.1 on my G3-based Mac, movies that Perian attempts to handle cause QuickTime to crash with EXC_BAD_INSTRUCTION. Perian 1.0 works fine. An excerpt from an example backtrace:

Thread 0 Crashed:
0   org.perian.Perian     0x04f0cb50 dct_unquantize_h263_altivec + 0
1   org.perian.Perian     0x04e35438 put_dct + 56
2   org.perian.Perian     0x04e43f68 MPV_decode_mb + 4152
3   org.perian.Perian     0x04e63abc decode_slice + 812
4   org.perian.Perian     0x04e649f4 ff_h263_decode_frame + 2964
5   org.perian.Perian     0x04e4ad4c avcodec_decode_video + 236
6   org.perian.Perian     0x04d5f294 FFusionDecompress + 164
7   org.perian.Perian     0x04d5f4e8 FFusionCodecDecodeBand + 396

...which obviously won't work on a G3.

(Just a shot in the dark... does Perian (or maybe FFmpeg) utilize liboil to detect the availability of Altivec? There are/were some problems with liboil's detection, cf fd.o bug #10247 , Ubuntu bug #72814. But I have no idea if that could be related.)

Change History

02/15/08 14:10:00 changed by astrange

mpegvideo_altivec.c -> MPV_common_init_altivec() doesn't check mm_flags...

02/15/08 14:33:06 changed by astrange

  • status changed from new to closed.
  • resolution set to fixed.

(In [809]) ffmpeg doesn't check for altivec presence before setting h263 idcts; fix this. closes #314

02/18/08 15:54:32 changed by astrange

(a cleaner patch has since been applied to ffmpeg)