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
This commit is contained in:
Alexander Strange 2008-02-18 21:35:31 +00:00 committed by Guillaume Poirier
parent b3574faa06
commit 3518c5a96b

View File

@ -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) ||