Revision 41d0eb1c libavcodec/opt.c

View differences:

libavcodec/opt.c
64 64
    return av_opt_set_defaults2(s, mask, flags);
65 65
}
66 66
#endif
67

  
68
#if FF_API_SET_STRING_OLD
69
const AVOption *av_set_string2(void *obj, const char *name, const char *val, int alloc){
70
    const AVOption *o;
71
    if (av_set_string3(obj, name, val, alloc, &o) < 0)
72
        return NULL;
73
    return o;
74
}
75

  
76
const AVOption *av_set_string(void *obj, const char *name, const char *val){
77
    const AVOption *o;
78
    if (av_set_string3(obj, name, val, 0, &o) < 0)
79
        return NULL;
80
    return o;
81
}
82
#endif

Also available in: Unified diff