1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 04:02:06 +00:00

DivX5linux support working (only tested with divx3 and divx4 upto now, will try getting divx5 damples now)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4996 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-03-09 00:12:49 +00:00
parent 3b9b71264b
commit 80fbbbdaf9

View File

@ -583,6 +583,16 @@ switch(sh_video->codec->driver){
dec_param.output_format=DEC_USER;
#else
dec_param.color_depth = 32;
#endif
#ifdef DECORE_DIVX5
/* codec_version should be 311, 400 or 500 according
* to DivX version used in video, let's hope 500 is
* compatible with all DivX4 content, otherwise we
* should find some logic to also choose between
* 400 and 500 - Atmos
*/
dec_param.codec_version = (sh_video->format==mmioFOURCC('D','I','V','3'))?311:500;
dec_param.build_number = 0;
#endif
dec_param.x_dim = sh_video->bih->biWidth;
dec_param.y_dim = sh_video->bih->biHeight;
@ -617,6 +627,10 @@ switch(sh_video->codec->driver){
mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",out_fmt);
return 0;
}
#ifdef DECORE_DIVX5
dec_param.codec_version = (sh_video->format==mmioFOURCC('D','I','V','3'))?311:500;
dec_param.build_number = 0;
#endif
dec_param.x_dim = sh_video->bih->biWidth;
dec_param.y_dim = sh_video->bih->biHeight;
decore(0x123, DEC_OPT_INIT, &dec_param, NULL);