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:
parent
b3574faa06
commit
3518c5a96b
@ -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…
Reference in New Issue
Block a user