changeset 8472:e241942f6aee

10l foudn by Steven Schultz
author arpi
date Mon, 16 Dec 2002 02:22:37 +0000
parents 0b7839c27be9
children 12d19b01d4c6
files codec-cfg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Mon Dec 16 01:49:39 2002 +0000
+++ b/codec-cfg.c	Mon Dec 16 02:22:37 2002 +0000
@@ -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);