Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 55196 Details for
Bug 87803
Patch for avifile to compile with gcc4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
avifile-gcc4-fix.patch
avifile-gcc4-fix.patch (text/plain), 3.91 KB, created by
Genady Okrain
on 2005-04-03 09:46:06 UTC
(
hide
)
Description:
avifile-gcc4-fix.patch
Filename:
MIME Type:
Creator:
Genady Okrain
Created:
2005-04-03 09:46:06 UTC
Size:
3.91 KB
patch
obsolete
>diff -urN avifile/ffmpeg/libavcodec/dsputil.h ./ffmpeg/libavcodec/dsputil.h >--- avifile/ffmpeg/libavcodec/dsputil.h 2005-02-15 13:33:34.000000000 +0100 >+++ avifile/ffmpeg/libavcodec/dsputil.h 2005-02-16 14:56:22.696041195 +0100 >@@ -604,33 +604,6 @@ > return score;\ > } > >-#ifndef HAVE_LRINTF >-/* XXX: add ISOC specific test to avoid specific BSD testing. */ >-/* better than nothing implementation. */ >-/* btw, rintf() is existing on fbsd too -- alex */ >-static always_inline long int lrintf(float x) >-{ >-#ifdef CONFIG_WIN32 >-# ifdef ARCH_X86 >- int32_t i; >- asm volatile( >- "fistpl %0\n\t" >- : "=m" (i) : "t" (x) : "st" >- ); >- return i; >-# else >- /* XXX: incorrect, but make it compile */ >- return (int)(x + (x < 0 ? -0.5 : 0.5)); >-# endif >-#else >- return (int)(rint(x)); >-#endif >-} >-#else >-#ifndef _ISOC9X_SOURCE >-#define _ISOC9X_SOURCE >-#endif > #include <math.h> >-#endif > > #endif >diff -urN avifile/lib/aviplay/AudioQueue.h ./lib/aviplay/AudioQueue.h >--- avifile/lib/aviplay/AudioQueue.h 2004-08-25 18:29:06.000000000 +0200 >+++ avifile/lib/aviplay/AudioQueue.h 2005-02-16 15:22:17.005815285 +0100 >@@ -16,10 +16,11 @@ > virtual int Mix(void* data, const void* src, uint_t n) const = 0; > }; > >+#define MAX_BUFFER_TIME 1.0; >+ > class AudioQueue > { > public: >- static const double MAX_BUFFER_TIME = 1.0; > AudioQueue(WAVEFORMATEX& Iwf, WAVEFORMATEX& Owf); > ~AudioQueue(); > >diff -urN avifile/lib/aviplay/aviplay_impl.h ./lib/aviplay/aviplay_impl.h >--- avifile/lib/aviplay/aviplay_impl.h 2003-12-17 21:37:54.000000000 +0100 >+++ avifile/lib/aviplay/aviplay_impl.h 2005-02-16 15:22:17.008814706 +0100 >@@ -136,8 +136,6 @@ > void createAudioRenderer(); > int restartVideoStreaming(const char* codec = 0); > >- static const float m_fDropLimit = -0.015; >- > mutable int AviPlayer::propertyRead[LAST_PROPERTY]; // have we read at least once from Registry:: > > avm::vector<IVideoRenderer*> m_VideoRenderers; // we could draw image to more places >diff -urN avifile/lib/aviplay/aviplayth.cpp ./lib/aviplay/aviplayth.cpp >--- avifile/lib/aviplay/aviplayth.cpp 2004-10-25 12:27:42.000000000 +0200 >+++ avifile/lib/aviplay/aviplayth.cpp 2005-02-16 15:22:17.009814513 +0100 >@@ -31,6 +31,7 @@ > // preffer video playing thread > static const int PRIORITY_ADD_VIDEO = 0; > static const int PRIORITY_ADD_AUDIO = 0; >+static const float m_fDropLimit = -0.015; > > float AviPlayer::getVideoAsync() > { >diff -urN avifile/lib/aviread/ReadFile.cpp ./lib/aviread/ReadFile.cpp >--- avifile/lib/aviread/ReadFile.cpp 2004-03-10 18:00:09.000000000 +0100 >+++ avifile/lib/aviread/ReadFile.cpp 2005-02-16 15:07:08.985182176 +0100 >@@ -125,7 +125,7 @@ > }; > > >-avm::IReadFile* avm::CreateReadFile(const char* name, unsigned int flags) >+IReadFile* CreateReadFile(const char* name, unsigned int flags) > { > ReadFile* r = new ReadFile(name, flags); > return r; >diff -urN avifile/samples/qtvidcap/kv4lsetup.cpp ./samples/qtvidcap/kv4lsetup.cpp >--- avifile/samples/qtvidcap/kv4lsetup.cpp 2004-11-04 14:43:49.000000000 +0100 >+++ avifile/samples/qtvidcap/kv4lsetup.cpp 2005-02-16 15:26:25.975723964 +0100 >@@ -311,7 +311,7 @@ > fbuf.depth = set_bpp; > fbuf.bytesperline = set_bpl; > if (set_base != NULL) >- fbuf.base = (void*)((unsigned int)set_base+(unsigned int)shift); >+ fbuf.base = (void*)((unsigned long)set_base+(unsigned long)shift); > > /* XXX bttv confuses color depth and bits/pixel */ > #ifndef X_DISPLAY_MISSING >diff -urN avifile/samples/qtvidcap/v4lxif.cpp ./samples/qtvidcap/v4lxif.cpp >--- avifile/samples/qtvidcap/v4lxif.cpp 2004-11-04 14:43:50.000000000 +0100 >+++ avifile/samples/qtvidcap/v4lxif.cpp 2005-02-16 15:27:22.047891007 +0100 >@@ -1118,7 +1118,7 @@ > XF86DGAGetVideoLL(disp, DefaultScreen(disp), (int *)&base, &width, &bank, &ram ); > if (!base) > avml(AVML_WARN, >- "v4l1: can not allocate frame buffer base: 0x%x\n",(int)base); >+ "v4l1: can not allocate frame buffer base: 0x%lx\n",(long)base); > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 87803
: 55196