comparison libmpcodecs/vd_divx4.c @ 5247:b68774024821

Im proved Build Version selection for DivX 5.
author atmos4
date Thu, 21 Mar 2002 18:59:07 +0000
parents c56853195dd6
children 522713337297
comparison
equal deleted inserted replaced
5246:4cfa6366e551 5247:b68774024821
104 default: 104 default:
105 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",sh->codec->outfmt[sh->outfmtidx]); 105 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",sh->codec->outfmt[sh->outfmtidx]);
106 return 0; 106 return 0;
107 } 107 }
108 #ifdef DECORE_DIVX5 108 #ifdef DECORE_DIVX5
109 dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500; 109 switch(sh->format) {
110 case mmioFOURCC('D','I','V','3'):
111 dec_param.codec_version = 311;
112 break;
113 case mmioFOURCC('D','I','V','X'):
114 dec_param.codec_version = 400;
115 break;
116 case mmioFOURCC('D','X','5','0'):
117 default: // Fallback to DivX 5 behaviour
118 dec_param.codec_version = 500;
119 }
110 dec_param.build_number = 0; 120 dec_param.build_number = 0;
111 #endif 121 #endif
112 dec_param.x_dim = sh->disp_w; 122 dec_param.x_dim = sh->disp_w;
113 dec_param.y_dim = sh->disp_h; 123 dec_param.y_dim = sh->disp_h;
114 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); 124 decore(0x123, DEC_OPT_INIT, &dec_param, NULL);