diff options
author | rguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-18 08:10:24 +0000 |
---|---|---|
committer | rguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-18 08:10:24 +0000 |
commit | 906a5699738cf6eebd25bdb15a997cd57c431fec (patch) | |
tree | bd0fa1d5320906e6a3005f2711d21b25d6aa5d9d /libmpcodecs/vd_xvid.c | |
parent | dba1874d20b4cca42c6728d325002cfff3d31fda (diff) | |
download | mpv-906a5699738cf6eebd25bdb15a997cd57c431fec.tar.bz2 mpv-906a5699738cf6eebd25bdb15a997cd57c431fec.tar.xz |
Use the XVID_API_UNSTABLE macro instead of a home-made one.
Print a big warning if compiled for the unstable XViD tree.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8492 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_xvid.c')
-rw-r--r-- | libmpcodecs/vd_xvid.c | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/libmpcodecs/vd_xvid.c b/libmpcodecs/vd_xvid.c index fee3a68cb2..429dfb4487 100644 --- a/libmpcodecs/vd_xvid.c +++ b/libmpcodecs/vd_xvid.c @@ -12,8 +12,18 @@ #include <divx4.h> #include <xvid.h> -#ifndef PMV_EARLYSTOP16 - #define XVID_DEV + +#ifdef XVID_API_UNSTABLE +#warning ******************************************************************* +#warning ** ** +#warning ** Y O U '' R E U S I N G U N S T A B L E S O F T W A R E ** +#warning ** ** +#warning ** There are bugs, this code could crash, could blow up your PC ** +#warning ** or the whole building and do many other nasty things ! ** +#warning ** ** +#warning ** If you want stable code use stable XViD releases (0.9.x). ** +#warning ** ** +#warning ******************************************************************* #endif static vd_info_t info = @@ -54,6 +64,22 @@ static int init(sh_video_t *sh){ priv_t* p; int cs; +#ifdef XVID_API_UNSTABLE + mp_msg (MSGT_DECVIDEO, MSGL_WARN, + "\n" + "*******************************************************************\n" + "** **\n" + "** Y O U ' R E U S I N G U N S T A B L E S O F T W A R E **\n" + "** **\n" + "** There are bugs, this code could crash, could blow up your PC **\n" + "** or the whole building and do many other nasty things ! **\n" + "** **\n" + "** If you want stable code use stable XViD releases (0.9.x). **\n" + "** **\n" + "*******************************************************************\n" + "\n"); +#endif + memset(&ini,0,sizeof(XVID_INIT_PARAM)); memset(&dec_p,0,sizeof(XVID_DEC_PARAM)); @@ -169,7 +195,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ dec.bitstream = data; dec.length = len; -#ifdef XVID_DEV +#ifdef XVID_API_UNSTABLE dec.general |= XVID_DEC_LOWDELAY; dec.general |= XVID_DEC_DEBLOCKY; dec.general |= XVID_DEC_DEBLOCKUV; |