changeset 5168:c56853195dd6

decore version check for divx3 and divx5
author arpi
date Mon, 18 Mar 2002 00:46:44 +0000
parents 5ad4891530b5
children ec2923dc5c24
files libmpcodecs/vd_divx4.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_divx4.c	Sun Mar 17 20:28:19 2002 +0000
+++ b/libmpcodecs/vd_divx4.c	Mon Mar 18 00:46:44 2002 +0000
@@ -75,6 +75,19 @@
     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));