OpenSDE Packages Database (without history before r20070)
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.

113 lines
4.6 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../avifile/gcc41.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- avifile-0.6/lib/aviplay/aviplay_impl.h.vanilla 2006-03-04 23:36:51.209437000 +0100
  17. +++ avifile-0.6/lib/aviplay/aviplay_impl.h 2006-03-04 23:36:58.897917500 +0100
  18. @@ -136,7 +136,7 @@
  19. void createAudioRenderer();
  20. int restartVideoStreaming(const char* codec = 0);
  21. - mutable int AviPlayer::propertyRead[LAST_PROPERTY]; // have we read at least once from Registry::
  22. + mutable int propertyRead[LAST_PROPERTY]; // have we read at least once from Registry::
  23. avm::vector<IVideoRenderer*> m_VideoRenderers; // we could draw image to more places
  24. IAudioRenderer* m_pAudioRenderer; // not sure about the sound - this will be
  25. --- avifile-0.6/plugins/libaudiodec/audiodecoder.cpp.vanilla 2006-03-04 23:39:15.462452250 +0100
  26. +++ avifile-0.6/plugins/libaudiodec/audiodecoder.cpp 2006-03-04 23:39:23.302942250 +0100
  27. @@ -114,7 +114,7 @@
  28. class MSGSM_Decoder : public IAudioDecoder
  29. {
  30. public:
  31. - MSGSM_Decoder::MSGSM_Decoder(const CodecInfo& info, const WAVEFORMATEX* wf)
  32. + MSGSM_Decoder(const CodecInfo& info, const WAVEFORMATEX* wf)
  33. :IAudioDecoder(info, wf)
  34. {
  35. GSM_Init();
  36. --- avifile-0.6/plugins/libmp3lame_audioenc/mp3encoder.cpp.vanilla 2006-03-04 23:46:09.756344000 +0100
  37. +++ avifile-0.6/plugins/libmp3lame_audioenc/mp3encoder.cpp 2006-03-04 23:46:24.041236750 +0100
  38. @@ -30,7 +30,7 @@
  39. short nCodecDelay;
  40. };
  41. public:
  42. - MP3Encoder::MP3Encoder(const CodecInfo& info, const WAVEFORMATEX* format)
  43. + MP3Encoder(const CodecInfo& info, const WAVEFORMATEX* format)
  44. :IAudioEncoder(info)
  45. {
  46. in_fmt=*format;
  47. --- avifile-0.6/plugins/libmp3lamebin_audioenc/lameencoder.cpp.vanilla 2006-03-04 23:44:06.212623000 +0100
  48. +++ avifile-0.6/plugins/libmp3lamebin_audioenc/lameencoder.cpp 2006-03-04 23:44:34.766407500 +0100
  49. @@ -71,14 +71,14 @@
  50. int CDECL (*p_lame_set_quality)(lame_global_flags *, int);
  51. public:
  52. - LameEncoder::LameEncoder(const CodecInfo& info, const WAVEFORMATEX* format)
  53. + LameEncoder(const CodecInfo& info, const WAVEFORMATEX* format)
  54. :IAudioEncoder(info), handle(0)
  55. {
  56. m_Error[0] = 0;
  57. in_fmt = *format;
  58. }
  59. - int LameEncoder::init()
  60. + int init()
  61. {
  62. handle = dlopen(mp3lamename, RTLD_LAZY);
  63. --- avifile-0.6/plugins/libmpeg_audiodec/mpegsound.h.vanilla 2006-03-04 23:47:10.168119500 +0100
  64. +++ avifile-0.6/plugins/libmpeg_audiodec/mpegsound.h 2006-03-04 23:47:39.009922000 +0100
  65. @@ -198,14 +198,14 @@
  66. void forward(int bits) {bitindex+=bits;};
  67. int getbits(int bits);
  68. - int Mpegbitwindow::getbit(void)
  69. + int getbit(void)
  70. {
  71. // register int r=(buffer[(bitindex>>3)&(WINDOWSIZE-1)]>>(7-(bitindex&7)))&1;
  72. register int r=(buffer[bitindex>>3]>>(7-(bitindex&7)))&1;
  73. bitindex++;
  74. return r;
  75. }
  76. - int Mpegbitwindow::getbits9(int bits)
  77. + int getbits9(int bits)
  78. {
  79. register unsigned short a;
  80. @@ -481,9 +481,9 @@
  81. #define MPEGNOINSTRUMENTFUNCTION
  82. Mpegbitwindow bitwindow;
  83. - int Mpegtoraw::wgetbit(void) MPEGNOINSTRUMENTFUNCTION { return bitwindow.getbit(); }
  84. - int Mpegtoraw::wgetbits9(int bits) MPEGNOINSTRUMENTFUNCTION { return bitwindow.getbits9(bits); }
  85. - int Mpegtoraw::wgetbits (int bits) MPEGNOINSTRUMENTFUNCTION { return bitwindow.getbits (bits); }
  86. + int wgetbit(void) MPEGNOINSTRUMENTFUNCTION { return bitwindow.getbit(); }
  87. + int wgetbits9(int bits) MPEGNOINSTRUMENTFUNCTION { return bitwindow.getbits9(bits); }
  88. + int wgetbits (int bits) MPEGNOINSTRUMENTFUNCTION { return bitwindow.getbits (bits); }
  89. /*************************************/
  90. /* Decoding functions for each layer */
  91. --- avifile-0.6/samples/misc/avicat.cpp.vanilla 2006-03-04 23:48:28.180995000 +0100
  92. +++ avifile-0.6/samples/misc/avicat.cpp 2006-03-04 23:48:52.846536500 +0100
  93. @@ -140,8 +140,8 @@
  94. avm::IVideoEncoder *vidEnc;
  95. void copyAudioFrames(int, int, bool);
  96. void createVideoEncoder(fourcc_t);
  97. - void AviCutter::writeVideoFrame(avm::CImage *image);
  98. - void AviCutter::copyVideoFrame();
  99. + void writeVideoFrame(avm::CImage *image);
  100. + void copyVideoFrame();
  101. public:
  102. AviCutter(avm::IWriteFile* outF,