[Mplayer-cvslog] CVS: main codec-cfg.c,1.99,1.100

Arpi of Ize arpi at mplayerhq.hu
Mon Dec 16 03:22:54 CET 2002


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

Modified Files:
	codec-cfg.c 
Log Message:
10l
foudn by Steven Schultz


Index: codec-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/codec-cfg.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- codec-cfg.c	15 Dec 2002 23:45:19 -0000	1.99
+++ codec-cfg.c	16 Dec 2002 02:22:37 -0000	1.100
@@ -490,8 +490,8 @@
 #else
 		video_codecs = builtin_video_codecs;
 		audio_codecs = builtin_audio_codecs;
-		nr_vcodecs = sizeof(builtin_video_codecs)/sizeof(codecs_t) - 1;
-		nr_acodecs = sizeof(builtin_audio_codecs)/sizeof(codecs_t) - 1;
+		nr_vcodecs = sizeof(builtin_video_codecs)/sizeof(codecs_t);
+		nr_acodecs = sizeof(builtin_audio_codecs)/sizeof(codecs_t);
 		return 1;
 #endif
 	}
@@ -989,7 +989,7 @@
 		
 		for (i=0; i<2; i++) {
 		  	printf("codecs_t %s[] = {\n", nm[i]);
-			for (j = 0; j <= nr[i]; j++) {
+			for (j = 0; j < nr[i]; j++) {
 			  	printf("{");
 
 				print_int_array(cod[i][j].fourcc, CODECS_MAX_FOURCC);




More information about the MPlayer-cvslog mailing list