[Mplayer-cvslog] CVS: main dec_video.c,1.119,1.120

Atmosfear atmos4 at mplayer.dev.hu
Sat Mar 9 01:13:01 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv30008

Modified Files:
	dec_video.c 
Log Message:
DivX5linux support working (only tested with divx3 and divx4 upto now, will try getting divx5 damples now)

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- dec_video.c	6 Mar 2002 14:27:36 -0000	1.119
+++ dec_video.c	9 Mar 2002 00:12:49 -0000	1.120
@@ -584,6 +584,16 @@
 #else
         dec_param.color_depth = 32;
 #endif
+#ifdef DECORE_DIVX5
+	/* codec_version should be 311, 400 or 500 according
+	 * to DivX version used in video, let's hope 500 is 
+	 * compatible with all DivX4 content, otherwise we
+	 * should find some logic to also choose between
+	 * 400 and 500 - Atmos
+	 */
+	dec_param.codec_version = (sh_video->format==mmioFOURCC('D','I','V','3'))?311:500;
+	dec_param.build_number = 0;
+#endif
 	dec_param.x_dim = sh_video->bih->biWidth;
 	dec_param.y_dim = sh_video->bih->biHeight;
 	decore(0x123, DEC_OPT_INIT, &dec_param, NULL);
@@ -617,6 +627,10 @@
 	  mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",out_fmt);
 	  return 0;
 	}
+#ifdef DECORE_DIVX5
+	dec_param.codec_version = (sh_video->format==mmioFOURCC('D','I','V','3'))?311:500;
+	dec_param.build_number = 0;
+#endif
 	dec_param.x_dim = sh_video->bih->biWidth;
 	dec_param.y_dim = sh_video->bih->biHeight;
 	decore(0x123, DEC_OPT_INIT, &dec_param, NULL);




More information about the MPlayer-cvslog mailing list