changeset 4997:5efa42dd4cd8

divx5 support into libmpcodecs (untested)
author atmos4
date Sat, 09 Mar 2002 00:57:05 +0000
parents 47c614b4434e
children c32191b02a66
files libmpcodecs/vd_divx4.c libmpcodecs/vd_odivx.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_divx4.c	Sat Mar 09 00:17:50 2002 +0000
+++ b/libmpcodecs/vd_divx4.c	Sat Mar 09 00:57:05 2002 +0000
@@ -69,6 +69,10 @@
 	  mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",sh->codec->outfmt[sh->outfmtidx]);
 	  return 0;
     }
+#ifdef DECORE_DIVX5
+    dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500;
+    dec_param.build_number = 0;
+#endif
     dec_param.x_dim = sh->disp_w;
     dec_param.y_dim = sh->disp_h;
     decore(0x123, DEC_OPT_INIT, &dec_param, NULL);
--- a/libmpcodecs/vd_odivx.c	Sat Mar 09 00:17:50 2002 +0000
+++ b/libmpcodecs/vd_odivx.c	Sat Mar 09 00:57:05 2002 +0000
@@ -104,6 +104,10 @@
 #else
     dec_param.color_depth = 32;
 #endif
+#ifdef DECORE_DIVX5
+    dec_param.codec_version = (sh->format==mmioFOURCC('D','I','V','3'))?311:500;
+    dec_param.build_number = 0;
+#endif
     dec_param.x_dim = sh->disp_w;
     dec_param.y_dim = sh->disp_h;
     decore(0x123, DEC_OPT_INIT, &dec_param, NULL);