summaryrefslogtreecommitdiff
path: root/libavcodec/apiexample.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2003-03-07 13:48:02 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2003-03-07 13:48:02 +0000
commitbec89a840f65c60631c6856411ddd67ee6d55506 (patch)
tree56edd78af883256a1110958d2eb48771c958bb82 /libavcodec/apiexample.c
parentbdfcbbed79684109485fbdf0303d43540c03874f (diff)
* more generic avoption_parse
* reused help ptr for sub ptr Originally committed as revision 1642 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/apiexample.c')
-rw-r--r--libavcodec/apiexample.c4
1 files changed, 2 insertions, 2 deletions
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