diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-12 15:35:52 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-12 15:35:52 +0000 |
commit | 45c97f82942528378393d1819eafbcfb351bc60d (patch) | |
tree | 5e6a3ddfc4efdedb81f545b2b3adf3681aadcf50 /dec_video.c | |
parent | 82eac1391ac173cb1723f8bd8dd5e6caa94a66a8 (diff) | |
download | mpv-45c97f82942528378393d1819eafbcfb351bc60d.tar.bz2 mpv-45c97f82942528378393d1819eafbcfb351bc60d.tar.xz |
Add some preliminary support for non-x86 architectures to mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1310 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dec_video.c b/dec_video.c index 5080f948f9..5de874b5d3 100644 --- a/dec_video.c +++ b/dec_video.c @@ -76,6 +76,7 @@ int init_video(sh_video_t *sh_video){ unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx]; switch(sh_video->codec->driver){ +#ifdef ARCH_X86 case 2: { if(!init_video_codec(sh_video,0)) { // GUI_MSG( mplUnknowError ) @@ -142,6 +143,13 @@ switch(sh_video->codec->driver){ break; #endif } +#else /* !ARCH_X86 */ + case 2: + case 4: + case 6: + fprintf(stderr,"MPlayer does not support win32 codecs on non-x86 platforms!\n"); + return 0; +#endif /* !ARCH_X86 */ case 3: { // OpenDivX if(verbose) printf("OpenDivX video codec\n"); { DEC_PARAM dec_param; @@ -319,7 +327,9 @@ switch(sh_video->codec->driver){ } #endif case 6: - case 2: { + case 2: +#ifdef ARCH_X86 + { HRESULT ret; unsigned int t=GetTimer(); unsigned int t2; @@ -368,6 +378,10 @@ else } break; } +#else + printf("Win32 video codec unavailable on non-x86 CPU -> force nosound :(\n"); + break; +#endif case 1: { int in_frame=0; int t=0; |