]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg-win64.patch
Contribs: port libupnp to mingw and make it compile
[vlc] / extras / contrib / src / Patches / ffmpeg-win64.patch
1 Index: swscale.c
2 ===================================================================
3 --- swscale.c   (revision 31036)
4 +++ swscale.c   (working copy)
5 @@ -994,7 +994,7 @@
6      }
7  }
8  
9 -static inline void rgb48ToY(uint8_t *dst, const uint8_t *src, int width,
10 +static inline void rgb48ToY(uint8_t *dst, const uint8_t *src, long width,
11                              uint32_t *unused)
12  {
13      int i;
14 @@ -1009,7 +1009,7 @@
15  
16  static inline void rgb48ToUV(uint8_t *dstU, uint8_t *dstV,
17                               const uint8_t *src1, const uint8_t *src2,
18 -                             int width, uint32_t *unused)
19 +                             long width, uint32_t *unused)
20  {
21      int i;
22      assert(src1==src2);
23 @@ -1025,7 +1025,7 @@
24  
25  static inline void rgb48ToUV_half(uint8_t *dstU, uint8_t *dstV,
26                                    const uint8_t *src1, const uint8_t *src2,
27 -                                  int width, uint32_t *unused)
28 +                                  long width, uint32_t *unused)
29  {
30      int i;
31      assert(src1==src2);
32 Index: swscale_template.c
33 ===================================================================
34 --- swscale_template.c  (revision 31036)
35 +++ swscale_template.c  (working copy)
36 @@ -2466,6 +2466,7 @@
37          }
38      } else {
39  #endif /* COMPILE_TEMPLATE_MMX2 */
40 +#if 0
41          x86_reg xInc_shr16 = (x86_reg) (xInc >> 16);
42          uint16_t xInc_mask = xInc & 0xffff;
43          __asm__ volatile(
44 @@ -2501,6 +2502,7 @@
45              "r" (src2)
46              : "%"REG_a, "%"REG_d, "%ecx", "%"REG_D, "%esi"
47          );
48 +#endif
49  #if COMPILE_TEMPLATE_MMX2
50      } //if MMX2 can't be used
51  #endif