summaryrefslogtreecommitdiffstats
path: root/dll_init.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-08 17:20:46 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-08 17:20:46 +0000
commit728e7eba4cebb564e8d9fd98d94748e21b89c0b7 (patch)
tree20ce683189e6198ae35d82a8318c6a4461733109 /dll_init.c
parent4844ff55e50fdd1689be0783ed0ae803590efcbc (diff)
downloadmpv-728e7eba4cebb564e8d9fd98d94748e21b89c0b7.tar.bz2
mpv-728e7eba4cebb564e8d9fd98d94748e21b89c0b7.tar.xz
VfwEx support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1298 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dll_init.c')
-rw-r--r--dll_init.c10
1 files changed, 7 insertions, 3 deletions
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;