diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-18 00:46:44 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-18 00:46:44 +0000 |
commit | cd564981a97586cb4f2d2926f33f4b2b327ac449 (patch) | |
tree | 2da2b353dc9daa15d36e43f5788c2f227d3f9c5e /libmpcodecs | |
parent | c811496afe641f0dd31d83e42fb692d51d83cba2 (diff) | |
download | mpv-cd564981a97586cb4f2d2926f33f4b2b327ac449.tar.bz2 mpv-cd564981a97586cb4f2d2926f33f4b2b327ac449.tar.xz |
decore version check for divx3 and divx5
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5169 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_divx4.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libmpcodecs/vd_divx4.c b/libmpcodecs/vd_divx4.c index 5e6f75a3fd..f5e2b6e933 100644 --- a/libmpcodecs/vd_divx4.c +++ b/libmpcodecs/vd_divx4.c @@ -75,6 +75,19 @@ static int init(sh_video_t *sh){ DEC_SET dec_set; int bits=16; +#ifndef NEW_DECORE + if(sh->format==mmioFOURCC('D','I','V','3')){ + mp_msg(MSGT_DECVIDEO,MSGL_INFO,"DivX 3.x not supported by opendivx decore - it requires divx4linux\n"); + return 0; // not supported + } +#endif +#ifndef DECORE_DIVX5 + if(sh->format==mmioFOURCC('D','X','5','0')){ + mp_msg(MSGT_DECVIDEO,MSGL_INFO,"DivX 5.00 not supported by divx4linux decore - it requires divx5linux\n"); + return 0; // not supported + } +#endif + if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; memset(&dec_param,0,sizeof(dec_param)); |