mirror of https://github.com/mpv-player/mpv
Audio should now work fine, so remove the ENABLE_AUDIO ifdef
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22468 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ea365aa53f
commit
dd866c4d11
|
@ -41,7 +41,6 @@
|
||||||
#include "demux_avs.h"
|
#include "demux_avs.h"
|
||||||
|
|
||||||
#define MAX_AVS_SIZE 16 * 1024 /* 16k should be enough */
|
#define MAX_AVS_SIZE 16 * 1024 /* 16k should be enough */
|
||||||
#undef ENABLE_AUDIO
|
|
||||||
|
|
||||||
HMODULE WINAPI LoadLibraryA(LPCSTR);
|
HMODULE WINAPI LoadLibraryA(LPCSTR);
|
||||||
FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
|
FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
|
||||||
|
@ -331,11 +330,7 @@ static demuxer_t* demux_open_avs(demuxer_t* demuxer)
|
||||||
found = 1;
|
found = 1;
|
||||||
mp_msg(MSGT_DEMUX, MSGL_V, "AVS: Clip has audio -> Channels = %d - Freq = %d\n", AVS->video_info->nchannels, AVS->video_info->audio_samples_per_second);
|
mp_msg(MSGT_DEMUX, MSGL_V, "AVS: Clip has audio -> Channels = %d - Freq = %d\n", AVS->video_info->nchannels, AVS->video_info->audio_samples_per_second);
|
||||||
|
|
||||||
#ifdef ENABLE_AUDIO
|
|
||||||
if (demuxer->audio->id == -1) demuxer->audio->id = 0;
|
if (demuxer->audio->id == -1) demuxer->audio->id = 0;
|
||||||
#else
|
|
||||||
if (demuxer->audio->id == -1) demuxer->audio->id = -2;
|
|
||||||
#endif
|
|
||||||
if (demuxer->audio->id == 0)
|
if (demuxer->audio->id == 0)
|
||||||
demuxer->audio->sh = sh_audio;
|
demuxer->audio->sh = sh_audio;
|
||||||
sh_audio->ds = demuxer->audio;
|
sh_audio->ds = demuxer->audio;
|
||||||
|
|
Loading…
Reference in New Issue