comparison libmpcodecs/vd_divx4.c @ 5168:c56853195dd6

decore version check for divx3 and divx5
author arpi
date Mon, 18 Mar 2002 00:46:44 +0000
parents 3dcbf67c0de0
children b68774024821
comparison
equal deleted inserted replaced
5167:5ad4891530b5 5168:c56853195dd6
73 static int init(sh_video_t *sh){ 73 static int init(sh_video_t *sh){
74 DEC_PARAM dec_param; 74 DEC_PARAM dec_param;
75 DEC_SET dec_set; 75 DEC_SET dec_set;
76 int bits=16; 76 int bits=16;
77 77
78 #ifndef NEW_DECORE
79 if(sh->format==mmioFOURCC('D','I','V','3')){
80 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"DivX 3.x not supported by opendivx decore - it requires divx4linux\n");
81 return 0; // not supported
82 }
83 #endif
84 #ifndef DECORE_DIVX5
85 if(sh->format==mmioFOURCC('D','X','5','0')){
86 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"DivX 5.00 not supported by divx4linux decore - it requires divx5linux\n");
87 return 0; // not supported
88 }
89 #endif
90
78 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; 91 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0;
79 92
80 memset(&dec_param,0,sizeof(dec_param)); 93 memset(&dec_param,0,sizeof(dec_param));
81 94
82 switch(sh->codec->outfmt[sh->outfmtidx]){ 95 switch(sh->codec->outfmt[sh->outfmtidx]){