Commit b02c4b2e authored by gpoirier's avatar gpoirier

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 %


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12137 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b518a575
......@@ -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)
{
if (mm_flags & MM_ALTIVEC == 0) return;
if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment