# HG changeset patch # User arpi # Date 1016416102 0 # Node ID 4f86aad49530dce29d681fcd30967cb7743c9735 # Parent 0dab2d783817c442491c898b29cae2480a920f5c decore version check for divx3 and divx5 diff -r 0dab2d783817 -r 4f86aad49530 libmpcodecs/vd_odivx.c --- a/libmpcodecs/vd_odivx.c Mon Mar 18 01:47:47 2002 +0000 +++ b/libmpcodecs/vd_odivx.c Mon Mar 18 01:48:22 2002 +0000 @@ -99,6 +99,20 @@ static int init(sh_video_t *sh){ DEC_PARAM dec_param; DEC_SET dec_set; + +#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 + memset(&dec_param,0,sizeof(dec_param)); #ifdef NEW_DECORE dec_param.output_format=DEC_USER;