Ticket #11533: mingw64-i686-ffmpeg-3.4.14-1.src.patch

File mingw64-i686-ffmpeg-3.4.14-1.src.patch, 666 bytes (added by Carlo Bramini, 20 months ago)

Fix for this bug (for reference)

  • ffmpeg-3.4.14/libavcodec/x86/mathops.h

    old new __asm__ volatile(\  
    115115static inline  int32_t NEG_SSR32( int32_t a, int8_t s){
    116116    __asm__ ("sarl %1, %0\n\t"
    117117         : "+r" (a)
    118          : "ic" ((uint8_t)(-s))
     118         : "ic" (-s & 0x1F)
    119119    );
    120120    return a;
    121121}
    … … static inline int32_t NEG_SSR32( int32_  
    124124static inline uint32_t NEG_USR32(uint32_t a, int8_t s){
    125125    __asm__ ("shrl %1, %0\n\t"
    126126         : "+r" (a)
    127          : "ic" ((uint8_t)(-s))
     127         : "ic" (-s & 0x1F)
    128128    );
    129129    return a;
    130130}