summaryrefslogtreecommitdiff
path: root/libavcodec/apiexample.c
diff options
context:
space:
mode:
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