| 833 | } |
| 834 | |
| 835 | int av_opt_set(void *obj, const char *name, const char *val, int search_flags) |
| 836 | { |
| 837 | void *dst, *target_obj; |
| 838 | const AVOption *o; |
| 839 | int ret; |
| 840 | |
| 841 | ret = opt_set_init(obj, name, search_flags, 0, &target_obj, &o, &dst); |
| 842 | if (ret < 0) |
| 843 | return ret; |
| 844 | |
| 845 | return ((o->type & AV_OPT_TYPE_FLAG_ARRAY) ? |
| 846 | opt_set_array : opt_set_elem)(obj, target_obj, o, val, dst); |
| 847 | } |
| 848 | |
| 849 | #define OPT_EVAL_NUMBER(name, opttype, vartype) \ |
| 850 | int av_opt_eval_ ## name(void *obj, const AVOption *o, \ |
no outgoing calls