Browse Source

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
tags/v0.5
Alexander Strange Guillaume Poirier 18 years ago
parent
commit
3518c5a96b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/ppc/mpegvideo_altivec.c

+ 2
- 0
libavcodec/ppc/mpegvideo_altivec.c 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)
{
if (mm_flags & MM_ALTIVEC == 0) return;

if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||


Loading…
Cancel
Save