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 %

Originally committed as revision 12137 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Alexander Strange 17 years ago committed by Guillaume Poirier
parent b3574faa06
commit 3518c5a96b
  1. 2
      libavcodec/ppc/mpegvideo_altivec.c

@ -608,6 +608,8 @@ extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block);
void MPV_common_init_altivec(MpegEncContext *s) void MPV_common_init_altivec(MpegEncContext *s)
{ {
if (mm_flags & MM_ALTIVEC == 0) return;
if (s->avctx->lowres==0) if (s->avctx->lowres==0)
{ {
if ((s->avctx->idct_algo == FF_IDCT_AUTO) || if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||

Loading…
Cancel
Save