Revision fa9b873e libavcodec/i386/dsputil_h264_template_mmx.c

View differences:

libavcodec/i386/dsputil_h264_template_mmx.c
98 98
    }
99 99

  
100 100
    /* general case, bilinear */
101
    rnd_reg = rnd ? ff_pw_32 : &ff_pw_28;
101
    rnd_reg = rnd ? &ff_pw_32.a : &ff_pw_28;
102 102
    asm volatile("movd %2, %%mm4\n\t"
103 103
                 "movd %3, %%mm6\n\t"
104 104
                 "punpcklwd %%mm4, %%mm4\n\t"
......
250 250
        "sub $2, %2                 \n\t"
251 251
        "jnz 1b                     \n\t"
252 252
        : "+r"(dst), "+r"(src), "+r"(h)
253
        : "r"((long)stride), "m"(*ff_pw_32), "m"(x), "m"(y)
253
        : "r"((long)stride), "m"(ff_pw_32), "m"(x), "m"(y)
254 254
    );
255 255
}
256 256

  
......
301 301
        "sub $1, %2\n\t"
302 302
        "jnz 1b\n\t"
303 303
        : "+r" (dst), "+r"(src), "+r"(h)
304
        : "m" (*ff_pw_32), "r"((long)stride)
304
        : "m" (ff_pw_32), "r"((long)stride)
305 305
        : "%esi");
306 306

  
307 307
}

Also available in: Unified diff