Mercurial > mplayer.hg
comparison libmpcodecs/vd_odivx.c @ 5173:4f86aad49530
decore version check for divx3 and divx5
author | arpi |
---|---|
date | Mon, 18 Mar 2002 01:48:22 +0000 |
parents | 3dcbf67c0de0 |
children | b68774024821 |
comparison
equal
deleted
inserted
replaced
5172:0dab2d783817 | 5173:4f86aad49530 |
---|---|
97 | 97 |
98 // init driver | 98 // init driver |
99 static int init(sh_video_t *sh){ | 99 static int init(sh_video_t *sh){ |
100 DEC_PARAM dec_param; | 100 DEC_PARAM dec_param; |
101 DEC_SET dec_set; | 101 DEC_SET dec_set; |
102 | |
103 #ifndef NEW_DECORE | |
104 if(sh->format==mmioFOURCC('D','I','V','3')){ | |
105 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"DivX 3.x not supported by opendivx decore - it requires divx4linux\n"); | |
106 return 0; // not supported | |
107 } | |
108 #endif | |
109 #ifndef DECORE_DIVX5 | |
110 if(sh->format==mmioFOURCC('D','X','5','0')){ | |
111 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"DivX 5.00 not supported by divx4linux decore - it requires divx5linux\n"); | |
112 return 0; // not supported | |
113 } | |
114 #endif | |
115 | |
102 memset(&dec_param,0,sizeof(dec_param)); | 116 memset(&dec_param,0,sizeof(dec_param)); |
103 #ifdef NEW_DECORE | 117 #ifdef NEW_DECORE |
104 dec_param.output_format=DEC_USER; | 118 dec_param.output_format=DEC_USER; |
105 #else | 119 #else |
106 dec_param.color_depth = 32; | 120 dec_param.color_depth = 32; |