Mercurial > mplayer.hg
diff codec-cfg.c @ 8472:e241942f6aee
10l
foudn by Steven Schultz
author | arpi |
---|---|
date | Mon, 16 Dec 2002 02:22:37 +0000 |
parents | 3ca9cc46df5c |
children | e89a7e9410b4 |
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);