From 728e7eba4cebb564e8d9fd98d94748e21b89c0b7 Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 8 Jul 2001 17:20:46 +0000 Subject: VfwEx support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1298 b3059339-0415-0410-9bf9-f77b7e298cf2 --- dll_init.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dll_init.c') diff --git a/dll_init.c b/dll_init.c index 0941450639..9d8bb8e8df 100644 --- a/dll_init.c +++ b/dll_init.c @@ -145,7 +145,7 @@ int acm_decode_audio(sh_audio_t *sh_audio, void* a_buffer,int minlen,int maxlen) -int init_video_codec(sh_video_t *sh_video){ +int init_video_codec(sh_video_t *sh_video,int ex){ HRESULT ret; int yuv=0; unsigned int outfmt=sh_video->codec->outfmt[sh_video->outfmtidx]; @@ -267,14 +267,18 @@ int init_video_codec(sh_video_t *sh_video){ printf(" biSizeImage %ld\n", sh_video->o_bih.biSizeImage); } - ret = ICDecompressQuery(sh_video->hic, sh_video->bih, &sh_video->o_bih); + ret = ex ? + ICDecompressQueryEx(sh_video->hic, sh_video->bih, &sh_video->o_bih) : + ICDecompressQuery(sh_video->hic, sh_video->bih, &sh_video->o_bih); if(ret){ printf("ICDecompressQuery failed: Error %d\n", (int)ret); return 0; } if(verbose) printf("ICDecompressQuery OK\n"); - ret = ICDecompressBegin(sh_video->hic, sh_video->bih, &sh_video->o_bih); + ret = ex ? + ICDecompressBeginEx(sh_video->hic, sh_video->bih, &sh_video->o_bih) : + ICDecompressBegin(sh_video->hic, sh_video->bih, &sh_video->o_bih); if(ret){ printf("ICDecompressBegin failed: Error %d\n", (int)ret); return 0; -- cgit v1.2.3