From 80fbbbdaf9316b6ce028090a904b6c45d72bcb07 Mon Sep 17 00:00:00 2001 From: atmos4 Date: Sat, 9 Mar 2002 00:12:49 +0000 Subject: 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 --- dec_video.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dec_video.c') diff --git a/dec_video.c b/dec_video.c index 75a5e57899..7d88cfe7a9 100644 --- a/dec_video.c +++ b/dec_video.c @@ -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); -- cgit v1.2.3