Mercurial > libavcodec.hg
changeset 6365:80c7e9c015c6 libavcodec
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 %
author | gpoirier |
---|---|
date | Mon, 18 Feb 2008 21:35:31 +0000 |
parents | b2d487e54407 |
children | 81d6ff9da713 |
files | ppc/mpegvideo_altivec.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ppc/mpegvideo_altivec.c Sun Feb 17 03:44:47 2008 +0000 +++ b/ppc/mpegvideo_altivec.c Mon Feb 18 21:35:31 2008 +0000 @@ -608,6 +608,8 @@ 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) ||