Im proved Build Version selection for DivX 5.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5248 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-03-21 18:59:07 +00:00
parent d3daa53395
commit 0b36dc013f
2 changed files with 22 additions and 2 deletions

View File

@ -106,7 +106,17 @@ static int init(sh_video_t *sh){
return 0; return 0;
} }
#ifdef DECORE_DIVX5 #ifdef DECORE_DIVX5
dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500; switch(sh->format) {
case mmioFOURCC('D','I','V','3'):
dec_param.codec_version = 311;
break;
case mmioFOURCC('D','I','V','X'):
dec_param.codec_version = 400;
break;
case mmioFOURCC('D','X','5','0'):
default: // Fallback to DivX 5 behaviour
dec_param.codec_version = 500;
}
dec_param.build_number = 0; dec_param.build_number = 0;
#endif #endif
dec_param.x_dim = sh->disp_w; dec_param.x_dim = sh->disp_w;

View File

@ -120,7 +120,17 @@ static int init(sh_video_t *sh){
dec_param.color_depth = 32; dec_param.color_depth = 32;
#endif #endif
#ifdef DECORE_DIVX5 #ifdef DECORE_DIVX5
dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500; switch(sh->format) {
case mmioFOURCC('D','I','V','3'):
dec_param.codec_version = 311;
break;
case mmioFOURCC('D','I','V','X'):
dec_param.codec_version = 400;
break;
case mmioFOURCC('D','X','5','0'):
default: // Fallback to DivX 5 behaviour
dec_param.codec_version = 500;
}
dec_param.build_number = 0; dec_param.build_number = 0;
#endif #endif
dec_param.x_dim = sh->disp_w; dec_param.x_dim = sh->disp_w;