File avifile-0.7-0.7.41-FP_constants.patch of Package avifile
--- lib/aviplay/AudioQueue.cpp
+++ lib/aviplay/AudioQueue.cpp
@@ -34,6 +34,8 @@
AVM_BEGIN_NAMESPACE;
+const double AudioQueue::MAX_BUFFER_TIME = 1.0;
+
template<class T> inline T mymin(const T x, const T y)
{
return (x < y) ? x : y;
--- lib/aviplay/AudioQueue.h
+++ lib/aviplay/AudioQueue.h
@@ -19,7 +19,7 @@
class AudioQueue
{
public:
- static const double MAX_BUFFER_TIME = 1.0;
+ static const double MAX_BUFFER_TIME;
AudioQueue(WAVEFORMATEX& Iwf, WAVEFORMATEX& Owf);
~AudioQueue();
--- lib/aviplay/aviplay.cpp
+++ lib/aviplay/aviplay.cpp
@@ -45,6 +45,7 @@
#undef min
#define min(X,Y) ((X)<(Y)?(X):(Y))
+const float AviPlayer::m_fDropLimit = -0.015;
AviPlayer::AviPlayer(const char* filename, int depth, const char* subname,
unsigned int flags,
--- lib/aviplay/aviplay_impl.h
+++ lib/aviplay/aviplay_impl.h
@@ -136,7 +136,7 @@
void createAudioRenderer();
int restartVideoStreaming(const char* codec = 0);
- static const float m_fDropLimit = -0.015;
+ static const float m_fDropLimit;
mutable int AviPlayer::propertyRead[LAST_PROPERTY]; // have we read at least once from Registry::