Ticket #3540: ffmpeg-1.2.6-dirac_arith_h_6regs.patch

File ffmpeg-1.2.6-dirac_arith_h_6regs.patch, 712 bytes (added by alucowie, 12 years ago)

Patch to fix the macro condition

  • libavcodec/dirac_arith.h

    diff -Npur ffmpeg-1.2.6.orig/libavcodec/dirac_arith.h ffmpeg-1.2.6/libavcodec/dirac_arith.h
    old new  
    2828#ifndef AVCODEC_DIRAC_ARITH_H
    2929#define AVCODEC_DIRAC_ARITH_H
    3030
     31#include "libavutil/x86/asm.h"
    3132#include "bytestream.h"
    3233#include "get_bits.h"
    3334
    static inline int dirac_get_arith_bit(Di  
    134135
    135136    range_times_prob = (c->range * prob_zero) >> 16;
    136137
    137 #if HAVE_FAST_CMOV && HAVE_INLINE_ASM
     138#if HAVE_FAST_CMOV && HAVE_INLINE_ASM && HAVE_6REGS
    138139    low   -= range_times_prob << 16;
    139140    range -= range_times_prob;
    140141    bit = 0;