mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

226 lines
11 KiB

  1. diff -dur avifile-0.7-0.7.38/configure avifile-0.7-0.7.38-patched/configure
  2. --- avifile-0.7-0.7.38/configure 2003-07-10 13:40:59.000000000 +0000
  3. +++ avifile-0.7-0.7.38-patched/configure 2004-06-25 17:23:54.000000000 +0000
  4. @@ -13301,7 +13301,7 @@
  5. AMM_USE_ARTSC_FALSE=
  6. fi
  7. -last_cvs_update=`find . -name Entries -printf '%Ty%Tm%Td-%TH:%TM\n' | sort | tail -1`
  8. +last_cvs_update=`find . -name Entries -printf '%Ty%Tm%Td-%TH:%TM\n' | sort | tail -n1`
  9. if test $? -ne 0 -o -z "$last_cvs_update" ; then
  10. # probably no gnu date installed(?), use current date
  11. # or this is release
  12. diff -dur avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/dsputil_mmx.c avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/i386/dsputil_mmx.c
  13. --- avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/dsputil_mmx.c 2003-06-23 18:52:34.000000000 +0000
  14. +++ avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/i386/dsputil_mmx.c 2004-06-25 17:23:54.000000000 +0000
  15. @@ -29,8 +29,8 @@
  16. static const uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL;
  17. static const uint64_t mm_wtwo __attribute__ ((aligned(8))) = 0x0002000200020002ULL;
  18. -static const uint64_t ff_pw_20 __attribute__ ((aligned(8))) = 0x0014001400140014ULL;
  19. -static const uint64_t ff_pw_3 __attribute__ ((aligned(8))) = 0x0003000300030003ULL;
  20. +static const uint64_t ff_pw_20 __attribute__ ((used)) __attribute__ ((aligned(8))) = 0x0014001400140014ULL;
  21. +static const uint64_t ff_pw_3 __attribute__ ((used)) __attribute__ ((aligned(8))) = 0x0003000300030003ULL;
  22. static const uint64_t ff_pw_16 __attribute__ ((aligned(8))) = 0x0010001000100010ULL;
  23. static const uint64_t ff_pw_15 __attribute__ ((aligned(8))) = 0x000F000F000F000FULL;
  24. diff -dur avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/motion_est_mmx.c avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/i386/motion_est_mmx.c
  25. --- avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/motion_est_mmx.c 2003-03-03 17:07:35.000000000 +0000
  26. +++ avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/i386/motion_est_mmx.c 2004-06-25 17:23:54.000000000 +0000
  27. @@ -26,7 +26,7 @@
  28. 0x0002000200020002,
  29. };
  30. -static __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL;
  31. +static __attribute__ ((used)) __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL;
  32. static inline void sad8_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
  33. {
  34. diff -dur avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/simple_idct_mmx.c avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/i386/simple_idct_mmx.c
  35. --- avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/simple_idct_mmx.c 2003-02-14 13:58:00.000000000 +0000
  36. +++ avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/i386/simple_idct_mmx.c 2004-06-25 17:23:54.000000000 +0000
  37. @@ -45,8 +45,8 @@
  38. #define ROW_SHIFT 11
  39. #define COL_SHIFT 20 // 6
  40. -static const uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
  41. -static const uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
  42. +static const uint64_t __attribute__ ((used)) __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
  43. +static const uint64_t __attribute__ ((used)) __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
  44. static int16_t __attribute__((aligned(8))) temp[64];
  45. static int16_t __attribute__((aligned(8))) coeffs[]= {
  46. 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0,
  47. diff -dur avifile-0.7-0.7.38/ffmpeg/libavcodec/liba52/resample_mmx.c avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/liba52/resample_mmx.c
  48. --- avifile-0.7-0.7.38/ffmpeg/libavcodec/liba52/resample_mmx.c 2003-04-16 20:03:07.000000000 +0000
  49. +++ avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/liba52/resample_mmx.c 2004-06-25 17:23:54.000000000 +0000
  50. @@ -7,10 +7,11 @@
  51. and it would mean (C / MMX2 / MMX / 3DNOW) versions
  52. */
  53. -static uint64_t __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;
  54. -static uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;
  55. -static uint64_t __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;
  56. -static uint64_t __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL;
  57. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;
  58. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;
  59. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;
  60. +static uint64_t __attribute__((used)) __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL;
  61. +
  62. static int a52_resample_MONO_to_5_MMX(float * _f, int16_t * s16){
  63. int32_t * f = (int32_t *) _f;
  64. diff -dur avifile-0.7-0.7.38/ffmpeg/libavcodec/libpostproc/postprocess.c avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/libpostproc/postprocess.c
  65. --- avifile-0.7-0.7.38/ffmpeg/libavcodec/libpostproc/postprocess.c 2003-06-26 19:14:31.000000000 +0000
  66. +++ avifile-0.7-0.7.38-patched/ffmpeg/libavcodec/libpostproc/postprocess.c 2004-06-25 17:23:54.000000000 +0000
  67. @@ -104,8 +104,8 @@
  68. //#define NUM_BLOCKS_AT_ONCE 16 //not used yet
  69. #ifdef ARCH_X86
  70. -static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
  71. -static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
  72. +static uint64_t __attribute__ ((used)) __attribute__((aligned(8))) w05= 0x0005000500050005LL;
  73. +static uint64_t __attribute__ ((used)) __attribute__((aligned(8))) w20= 0x0020002000200020LL;
  74. static uint64_t __attribute__((aligned(8))) b00= 0x0000000000000000LL;
  75. static uint64_t __attribute__((aligned(8))) b01= 0x0101010101010101LL;
  76. static uint64_t __attribute__((aligned(8))) b02= 0x0202020202020202LL;
  77. diff -dur avifile-0.7-0.7.38/include/aviplay.h avifile-0.7-0.7.38-patched/include/aviplay.h
  78. --- avifile-0.7-0.7.38/include/aviplay.h 2003-05-24 22:51:30.000000000 +0000
  79. +++ avifile-0.7-0.7.38-patched/include/aviplay.h 2004-06-25 17:23:54.000000000 +0000
  80. @@ -12,8 +12,8 @@
  81. #include "image.h"
  82. #include "avm_args.h"
  83. -typedef void (*KILLHANDLER)(int, void* p = 0);
  84. -typedef int (*AUDIOFUNC)(void* srcdata, unsigned int size, void* p = 0);
  85. +typedef void (*KILLHANDLER)(int, void* p);
  86. +typedef int (*AUDIOFUNC)(void* srcdata, unsigned int size, void* p);
  87. AVM_BEGIN_NAMESPACE;
  88. diff -dur avifile-0.7-0.7.38/include/avm_map.h avifile-0.7-0.7.38-patched/include/avm_map.h
  89. --- avifile-0.7-0.7.38/include/avm_map.h 2003-03-27 01:01:22.000000000 +0000
  90. +++ avifile-0.7-0.7.38-patched/include/avm_map.h 2004-06-25 17:23:54.000000000 +0000
  91. @@ -198,7 +198,8 @@
  92. {
  93. // cast to the needed type - used to prevent internal compiler error
  94. // for old egcc
  95. - avm_map<Key, Value, Compare, Equal>::_Tnode* node = (avm_map<Key, Value, Compare, Equal>::_Tnode*) n;
  96. +// avm_map<Key, Value, Compare, Equal>::_Tnode* node = (avm_map<Key, Value, Compare, Equal>::_Tnode*) n;
  97. + binary_tree_node<Key,Value> * node = (binary_tree_node<Key,Value>*) n;
  98. if(node->entry)
  99. {
  100. diff -dur avifile-0.7-0.7.38/include/avm_stl.h avifile-0.7-0.7.38-patched/include/avm_stl.h
  101. --- avifile-0.7-0.7.38/include/avm_stl.h 2003-06-08 15:57:05.000000000 +0000
  102. +++ avifile-0.7-0.7.38-patched/include/avm_stl.h 2004-06-25 17:23:54.000000000 +0000
  103. @@ -149,7 +149,7 @@
  104. // disabled for now
  105. qring<Type>() {}
  106. - qring<Type>(const qring<Type>& t) {}
  107. +// qring<Type>(const qring<Type>& t) {}
  108. uint_t bpos() const { return (m_uiPos > 0) ? m_uiPos - 1 : m_uiCapacity - 1; }
  109. uint_t fpos() const { return (m_uiSize > m_uiPos) ? m_uiPos + m_uiCapacity - m_uiSize: m_uiPos - m_uiSize; }
  110. diff -dur avifile-0.7-0.7.38/lib/aviread/AsfNetworkInputStream.cpp avifile-0.7-0.7.38-patched/lib/aviread/AsfNetworkInputStream.cpp
  111. --- avifile-0.7-0.7.38/lib/aviread/AsfNetworkInputStream.cpp 2003-05-27 15:26:31.000000000 +0000
  112. +++ avifile-0.7-0.7.38-patched/lib/aviread/AsfNetworkInputStream.cpp 2004-06-25 17:26:02.000000000 +0000
  113. @@ -801,7 +801,8 @@
  114. int i = ::write(m_iSocket, buffer, wsize);
  115. if (i <= 0)
  116. return i;
  117. - (const char*)buffer += i;
  118. + const char* cbuffer = (const char*) buffer;
  119. + buffer = (void*) (cbuffer+i);
  120. wsize -= i;
  121. }
  122. return size;
  123. @@ -843,7 +844,8 @@
  124. int i = ::write(m_lfd, buffer, size);
  125. if (i < 0)
  126. return i;
  127. - (const char*)buffer += i;
  128. + const char* cbuffer = (const char*) buffer;
  129. + buffer = (void*) (cbuffer+i);
  130. size -= i;
  131. }
  132. fsync(m_lfd);
  133. Nur in avifile-0.7-0.7.38-patched/lib/aviread: AsfNetworkInputStream.cpp~.
  134. Nur in avifile-0.7-0.7.38-patched/lib/aviread: AsfNetworkInputStream.cpp.rej.
  135. diff -dur avifile-0.7-0.7.38/lib/common/image.cpp avifile-0.7-0.7.38-patched/lib/common/image.cpp
  136. --- avifile-0.7-0.7.38/lib/common/image.cpp 2003-05-24 23:00:58.000000000 +0000
  137. +++ avifile-0.7-0.7.38-patched/lib/common/image.cpp 2004-06-25 17:23:54.000000000 +0000
  138. @@ -954,7 +954,7 @@
  139. fillMembers();
  140. if (!copy)
  141. {
  142. - (const uint8_t*) m_pPlane[0] = data;
  143. + m_pPlane[0] = (unsigned char*) data;
  144. }
  145. else
  146. {
  147. diff -dur avifile-0.7-0.7.38/plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c avifile-0.7-0.7.38-patched/plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c
  148. --- avifile-0.7-0.7.38/plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c 2001-03-27 17:04:29.000000000 +0000
  149. +++ avifile-0.7-0.7.38-patched/plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c 2004-06-25 17:23:54.000000000 +0000
  150. @@ -1007,18 +1007,18 @@
  151. "dec %4\n\t"
  152. "movl %5, %%eax\n\t"
  153. - "movl 4+%5, %%ebx\n\t"
  154. + "movl 4+%5, %%ecx\n\t"
  155. "fxch %%st(1)\n\t"
  156. "fadd" F8type " (%2,%%eax," F8size ")\n\t"
  157. "fxch %%st(3)\n\t"
  158. - "fadd" F8type " (%2,%%ebx," F8size ")\n\t"
  159. + "fadd" F8type " (%2,%%ecx," F8size ")\n\t"
  160. "movl 8+%5, %%eax\n\t"
  161. - "movl 12+%5, %%ebx\n\t"
  162. + "movl 12+%5, %%ecx\n\t"
  163. "fxch %%st(2)\n\t"
  164. "fadd" F8type " (%2,%%eax," F8size ")\n\t"
  165. "fxch %%st(1)\n\t"
  166. - "fadd" F8type " (%2,%%ebx," F8size ")\n\t"
  167. + "fadd" F8type " (%2,%%ecx," F8size ")\n\t"
  168. "fxch %%st(3)\n\t"
  169. "fistpl -16(%3)\n\t"
  170. @@ -1030,7 +1030,7 @@
  171. "jnz loop1\n\n"
  172. : /* no outputs */
  173. : "t" (istep), "r" (xr), "r" (adj43asm), "r" (ix), "r" (576 / 4), "m" (rx)
  174. - : "%eax", "%ebx", "memory", "cc"
  175. + : "%eax", "%ecx", "memory", "cc"
  176. );
  177. }
  178. #elif defined (USE_MSC_ASM)
  179. diff -dur avifile-0.7-0.7.38/plugins/libvorbis/libvorbis.cpp avifile-0.7-0.7.38-patched/plugins/libvorbis/libvorbis.cpp
  180. --- avifile-0.7-0.7.38/plugins/libvorbis/libvorbis.cpp 2003-05-20 14:33:13.000000000 +0000
  181. +++ avifile-0.7-0.7.38-patched/plugins/libvorbis/libvorbis.cpp 2004-06-25 17:23:54.000000000 +0000
  182. @@ -96,7 +96,7 @@
  183. op.packet = NULL;
  184. op.b_o_s = 1; /* beginning of stream for first packet */
  185. op.bytes = hdrsizes[0];
  186. - (const void*) op.packet = vorbishdr;
  187. + op.packet = (unsigned char*) vorbishdr;
  188. vorbishdr += op.bytes;
  189. if (vorbis_synthesis_headerin(&vi, &vc, &op) < 0)
  190. {
  191. @@ -106,7 +106,7 @@
  192. op.b_o_s = 0;
  193. op.bytes = hdrsizes[1];
  194. - (const void*) op.packet = vorbishdr;
  195. + op.packet = (unsigned char*) vorbishdr;
  196. vorbishdr += op.bytes;
  197. if (vorbis_synthesis_headerin(&vi, &vc, &op) < 0)
  198. {
  199. @@ -115,7 +115,7 @@
  200. }
  201. op.bytes = hdrsizes[2];
  202. - (const void*) op.packet = vorbishdr;
  203. + op.packet = (unsigned char*) vorbishdr;
  204. vorbishdr += op.bytes;
  205. if (vorbis_synthesis_headerin(&vi, &vc, &op) < 0)
  206. {