]> git.sesse.net Git - ffmpeg/commitdiff
Compile fix on non-x86
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 1 Feb 2005 09:00:12 +0000 (09:00 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 1 Feb 2005 09:00:12 +0000 (09:00 +0000)
Originally committed as revision 14631 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale.c

index 3a6766bea34d3719c58e71f2fb01c67ec84a32f6..cefff839eb85279b05cbee6a77725ce3063b608e 100644 (file)
@@ -2568,6 +2568,7 @@ void sws_freeContext(SwsContext *c){
        if(c->hChrFilterPos) free(c->hChrFilterPos);
        c->hChrFilterPos = NULL;
 
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
 #ifdef HAVE_SYS_MMAN_H
        if(c->funnyYCode) munmap(c->funnyYCode, MAX_FUNNY_CODE_SIZE);
        if(c->funnyUVCode) munmap(c->funnyUVCode, MAX_FUNNY_CODE_SIZE);
@@ -2577,6 +2578,7 @@ void sws_freeContext(SwsContext *c){
 #endif
        c->funnyYCode=NULL;
        c->funnyUVCode=NULL;
+#endif
 
        if(c->lumMmx2Filter) free(c->lumMmx2Filter);
        c->lumMmx2Filter=NULL;