diff apiexample.c @ 1114:e4762efc3617 libavcodec

* more generic avoption_parse * reused help ptr for sub ptr
author kabi
date Fri, 07 Mar 2003 13:48:02 +0000
parents 1e39f273ecd6
children 77ccf7fe3bd0
line wrap: on
line diff
--- a/apiexample.c	Fri Mar 07 12:37:49 2003 +0000
+++ b/apiexample.c	Fri Mar 07 13:48:02 2003 +0000
@@ -413,9 +413,9 @@
 	int depth = 0;
 	for (;;) {
 	    if (!c->name) {
-		if (c->sub) {
+		if (c->help) {
 		    stack[depth++] = c;
-		    c = c->sub;
+		    c = (const AVOption*)c->help;
 		} else {
 		    if (depth == 0)
 			break; // finished