diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-09 00:12:49 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-09 00:12:49 +0000 |
commit | 80fbbbdaf9316b6ce028090a904b6c45d72bcb07 (patch) | |
tree | 4e3c6222452c8a104343aaaad6b9c41402e728a7 /dec_video.c | |
parent | 3b9b71264bfdadb3d6c712b517f8aa9e1d866b84 (diff) | |
download | mpv-80fbbbdaf9316b6ce028090a904b6c45d72bcb07.tar.bz2 mpv-80fbbbdaf9316b6ce028090a904b6c45d72bcb07.tar.xz |
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
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c index 75a5e57899..7d88cfe7a9 100644 --- a/dec_video.c +++ b/dec_video.c @@ -584,6 +584,16 @@ switch(sh_video->codec->driver){ #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 @@ 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); |