| 533 | } |
| 534 | |
| 535 | static const AVOption *opt_find(void *obj, const char *name, const char *unit, |
| 536 | int opt_flags, int search_flags) |
| 537 | { |
| 538 | const AVOption *o = av_opt_find(obj, name, unit, opt_flags, search_flags); |
| 539 | if(o && !o->flags) |
| 540 | return NULL; |
| 541 | return o; |
| 542 | } |
| 543 | |
| 544 | #define FLAGS (o->type == AV_OPT_TYPE_FLAGS && (arg[0]=='-' || arg[0]=='+')) ? AV_DICT_APPEND : 0 |
| 545 | int opt_default(void *optctx, const char *opt, const char *arg) |