# HG changeset patch # User atmos4 # Date 1015632769 0 # Node ID d26babb53d8d3fe4f7e96cb402e9596fec9be7aa # Parent e74227031a12c5c4ec7f365d125f3703a53c8f93 DivX5linux support working (only tested with divx3 and divx4 upto now, will try getting divx5 damples now) diff -r e74227031a12 -r d26babb53d8d dec_video.c --- a/dec_video.c Fri Mar 08 20:17:33 2002 +0000 +++ b/dec_video.c Sat Mar 09 00:12:49 2002 +0000 @@ -584,6 +584,16 @@ #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; decore(0x123, DEC_OPT_INIT, &dec_param, NULL); @@ -617,6 +627,10 @@ 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);