Permalink
Browse files

Fix goom to use av_get_cpu_flags() from current ffmpeg

  • Loading branch information...
1 parent 449d36d commit 75eafd40831b4ccfd451191fb25efd6861eeea76 @Beirdo Beirdo committed Apr 12, 2012
@@ -1,10 +1,9 @@
#ifndef GOOM_MMX_H
#include <mythconfig.h>
+#include <libavcodec/avcodec.h>
#include <libavcodec/mmx.h>
-int mm_support(void);
-
#define MM_MMX 0x0001 /* standard MMX */
#define MM_3DNOW 0x0004 /* AMD 3DNOW */
#define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */
@@ -27,7 +27,7 @@ int zoom_filter_xmmx_supported (void);
#include "mmx.h"
int zoom_filter_xmmx_supported () {
- return (mm_support()&0x8)>>3;
+ return (av_get_cpu_flags() & AV_CPU_FLAG_SSE) >> 3;
}
void zoom_filter_xmmx (int prevX, int prevY,
@@ -3,8 +3,6 @@
#include <mythconfig.h>
#include "libavcodec/x86/mmx.h"
-int mm_support(void);
-
#define MM_MMX 0x0001 /* standard MMX */
#define MM_3DNOW 0x0004 /* AMD 3DNOW */
#define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */
@@ -25,9 +25,10 @@ int zoom_filter_xmmx_supported (void);
//#define MMX_TRACE
#include "mmx.h"
+#include "libavutil/cpu.h"
int zoom_filter_xmmx_supported () {
- return (mm_support()&0x8)>>3;
+ return (av_get_cpu_flags() & AV_CPU_FLAG_SSE) >> 3;
}
void zoom_filter_xmmx (int prevX, int prevY,

0 comments on commit 75eafd4

Please sign in to comment.