From bec89a840f65c60631c6856411ddd67ee6d55506 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 7 Mar 2003 13:48:02 +0000 Subject: * more generic avoption_parse * reused help ptr for sub ptr Originally committed as revision 1642 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/apiexample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/apiexample.c') diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 530ae74cd1..306be47f91 100644 --- a/libavcodec/apiexample.c +++ b/libavcodec/apiexample.c @@ -413,9 +413,9 @@ int options_example(int argc, char* argv[]) 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 -- cgit v1.2.1