diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-03-07 13:48:02 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-03-07 13:48:02 +0000 |
commit | bec89a840f65c60631c6856411ddd67ee6d55506 (patch) | |
tree | 56edd78af883256a1110958d2eb48771c958bb82 /libavcodec/apiexample.c | |
parent | bdfcbbed79684109485fbdf0303d43540c03874f (diff) | |
download | ffmpeg-bec89a840f65c60631c6856411ddd67ee6d55506.tar.gz |
* 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.c | 4 |
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 |