mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 11:20:56 +00:00
runtime cpu detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3146 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1b16261c7c
commit
0a103eef42
10
dec_audio.c
10
dec_audio.c
@ -34,6 +34,8 @@ extern int verbose; // defined in mplayer.c
|
|||||||
|
|
||||||
#include "ima4.h"
|
#include "ima4.h"
|
||||||
|
|
||||||
|
#include "cpudetect.h"
|
||||||
|
|
||||||
#ifdef USE_FAKE_MONO
|
#ifdef USE_FAKE_MONO
|
||||||
int fakemono=0;
|
int fakemono=0;
|
||||||
#endif
|
#endif
|
||||||
@ -329,12 +331,12 @@ case AFM_AC3: {
|
|||||||
ac3_config.fill_buffer_callback = ac3_fill_buffer;
|
ac3_config.fill_buffer_callback = ac3_fill_buffer;
|
||||||
ac3_config.num_output_ch = 2;
|
ac3_config.num_output_ch = 2;
|
||||||
ac3_config.flags = 0;
|
ac3_config.flags = 0;
|
||||||
#ifdef HAVE_MMX
|
if(gCpuCaps.hasMMX){
|
||||||
ac3_config.flags |= AC3_MMX_ENABLE;
|
ac3_config.flags |= AC3_MMX_ENABLE;
|
||||||
#endif
|
}
|
||||||
#ifdef HAVE_3DNOW
|
if(gCpuCaps.has3DNow){
|
||||||
ac3_config.flags |= AC3_3DNOW_ENABLE;
|
ac3_config.flags |= AC3_3DNOW_ENABLE;
|
||||||
#endif
|
}
|
||||||
ac3_init();
|
ac3_init();
|
||||||
sh_audio->ac3_frame = ac3_decode_frame();
|
sh_audio->ac3_frame = ac3_decode_frame();
|
||||||
if(sh_audio->ac3_frame){
|
if(sh_audio->ac3_frame){
|
||||||
|
Loading…
Reference in New Issue
Block a user