Revision 7160bb71 libavcodec/x86/motion_est_mmx.c

View differences:

libavcodec/x86/motion_est_mmx.c
429 429
{
430 430
    int mm_flags = mm_support();
431 431

  
432
    if (mm_flags & FF_MM_MMX) {
432
    if (mm_flags & AV_CPU_FLAG_MMX) {
433 433
        c->pix_abs[0][0] = sad16_mmx;
434 434
        c->pix_abs[0][1] = sad16_x2_mmx;
435 435
        c->pix_abs[0][2] = sad16_y2_mmx;
......
442 442
        c->sad[0]= sad16_mmx;
443 443
        c->sad[1]= sad8_mmx;
444 444
    }
445
    if (mm_flags & FF_MM_MMX2) {
445
    if (mm_flags & AV_CPU_FLAG_MMX2) {
446 446
        c->pix_abs[0][0] = sad16_mmx2;
447 447
        c->pix_abs[1][0] = sad8_mmx2;
448 448

  
......
458 458
            c->pix_abs[1][3] = sad8_xy2_mmx2;
459 459
        }
460 460
    }
461
    if ((mm_flags & FF_MM_SSE2) && !(mm_flags & FF_MM_3DNOW) && avctx->codec_id != CODEC_ID_SNOW) {
461
    if ((mm_flags & AV_CPU_FLAG_SSE2) && !(mm_flags & AV_CPU_FLAG_3DNOW) && avctx->codec_id != CODEC_ID_SNOW) {
462 462
        c->sad[0]= sad16_sse2;
463 463
    }
464 464
}

Also available in: Unified diff