msmpeg4: fix asm code in ff_msmpeg4_pred_dc()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Apr 2013 14:25:12 +0000 (16:25 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Apr 2013 14:26:52 +0000 (16:26 +0200)
Fixes first half of Ticket2414

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/msmpeg4.c

index 59771f5..766415e 100644 (file)
@@ -228,13 +228,13 @@ int ff_msmpeg4_pred_dc(MpegEncContext *s, int n,
         "addl %%eax, %2         \n\t"
         "addl %%eax, %1         \n\t"
         "addl %0, %%eax         \n\t"
-        "mull %4                \n\t"
+        "imull %4               \n\t"
         "movl %%edx, %0         \n\t"
         "movl %1, %%eax         \n\t"
-        "mull %4                \n\t"
+        "imull %4               \n\t"
         "movl %%edx, %1         \n\t"
         "movl %2, %%eax         \n\t"
-        "mull %4                \n\t"
+        "imull %4               \n\t"
         "movl %%edx, %2         \n\t"
         : "+b" (a), "+c" (b), "+D" (c)
         : "g" (scale), "S" (ff_inverse[scale])