[FFmpeg-cvslog] r12137 - trunk/libavcodec/ppc/mpegvideo_altivec.c
gpoirier
subversion
Mon Feb 18 22:35:31 CET 2008
Author: gpoirier
Date: Mon Feb 18 22:35:31 2008
New Revision: 12137
Log:
fix crash on non-AltiVec powered machines: MPV_common_init_altivec doesn't check mm_flags
Patch by Alexander Strange %astrange A ithinksw PP com %
Modified:
trunk/libavcodec/ppc/mpegvideo_altivec.c
Modified: trunk/libavcodec/ppc/mpegvideo_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/mpegvideo_altivec.c (original)
+++ trunk/libavcodec/ppc/mpegvideo_altivec.c Mon Feb 18 22:35:31 2008
@@ -608,6 +608,8 @@ extern void idct_add_altivec(uint8_t *de
void MPV_common_init_altivec(MpegEncContext *s)
{
+ if (mm_flags & MM_ALTIVEC == 0) return;
+
if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
More information about the ffmpeg-cvslog
mailing list