Commit 3299f888 authored by Scott LaVarnway's avatar Scott LaVarnway
Browse files

Bug fix: Issue 532: VPX codec executes emms instruction without

checking CPU capabilities

Reported by Krzysztof Kaspruk.
https://code.google.com/p/webm/issues/detail?id=532

Change-Id: I9efa693b0c33694c871189841b8ac59c1fc554e2
parent 720d4eaa
...@@ -82,6 +82,7 @@ static int get_cpu_count() ...@@ -82,6 +82,7 @@ static int get_cpu_count()
} }
#endif #endif
void vp8_clear_system_state_c() {};
void vp8_machine_specific_config(VP8_COMMON *ctx) void vp8_machine_specific_config(VP8_COMMON *ctx)
{ {
......
...@@ -18,6 +18,13 @@ EOF ...@@ -18,6 +18,13 @@ EOF
} }
forward_decls vp8_common_forward_decls forward_decls vp8_common_forward_decls
#
# system state
#
prototype void vp8_clear_system_state ""
specialize vp8_clear_system_state mmx
vp8_clear_system_state_mmx=vpx_reset_mmx_state
# #
# Dequant # Dequant
# #
......
...@@ -10,12 +10,6 @@ ...@@ -10,12 +10,6 @@
#include "vpx_config.h" #include "vpx_config.h"
#if ARCH_X86 || ARCH_X86_64
void vpx_reset_mmx_state(void);
#define vp8_clear_system_state() vpx_reset_mmx_state()
#else
#define vp8_clear_system_state()
#endif
struct VP8Common; struct VP8Common;
void vp8_machine_specific_config(struct VP8Common *); void vp8_machine_specific_config(struct VP8Common *);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment