changeset 628:118fd21b7ada

fixed start!=NULL in find_codec()
author arpi_esp
date Tue, 24 Apr 2001 22:55:52 +0000
parents f03f9ae6303a
children d65cc6099f49
files codec-cfg.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Tue Apr 24 22:51:55 2001 +0000
+++ b/codec-cfg.c	Tue Apr 24 22:55:52 2001 +0000
@@ -593,6 +593,7 @@
 	int i, j;
 	codecs_t *c;
 
+#if 0
 	if (start) {
 		for (/* NOTHING */; start->name; start++) {
 			for (j = 0; j < CODECS_MAX_FOURCC; j++) {
@@ -603,7 +604,9 @@
 				}
 			}
 		}
-	} else {
+	} else 
+#endif
+        {
 		if (audioflag) {
 			i = nr_acodecs;
 			c = audio_codecs;
@@ -612,6 +615,7 @@
 			c = video_codecs;
 		}
 		for (/* NOTHING */; i--; c++) {
+                        if(start && c<=start) continue;
 			for (j = 0; j < CODECS_MAX_FOURCC; j++) {
 				if (c->fourcc[j] == fourcc) {
 					if (fourccmap)