comparison opt.h @ 8407:8903ad65c412 libavcodec

Put under #if LIBAVCODEC_VERSION_MAJOR < 53 the deprecated functions av_set_string() and av_set_string2(), they will be dropped at the next major bump.
author stefano
date Fri, 19 Dec 2008 22:37:56 +0000
parents 0030146fc2ba
children dc7bfff68156
comparison
equal deleted inserted replaced
8406:ea27308fa023 8407:8903ad65c412
97 * @return a pointer to the option found, or NULL if no option 97 * @return a pointer to the option found, or NULL if no option
98 * has been found 98 * has been found
99 */ 99 */
100 const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags); 100 const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags);
101 101
102 #if LIBAVCODEC_VERSION_MAJOR < 53
102 /** 103 /**
103 * @see av_set_string2() 104 * @see av_set_string2()
104 */ 105 */
105 attribute_deprecated const AVOption *av_set_string(void *obj, const char *name, const char *val); 106 attribute_deprecated const AVOption *av_set_string(void *obj, const char *name, const char *val);
106 107
109 * NULL if no matching AVOption exists, or if the value \p val is not 110 * NULL if no matching AVOption exists, or if the value \p val is not
110 * valid 111 * valid
111 * @see av_set_string3() 112 * @see av_set_string3()
112 */ 113 */
113 attribute_deprecated const AVOption *av_set_string2(void *obj, const char *name, const char *val, int alloc); 114 attribute_deprecated const AVOption *av_set_string2(void *obj, const char *name, const char *val, int alloc);
115 #endif
114 116
115 /** 117 /**
116 * Sets the field of obj with the given name to value. 118 * Sets the field of obj with the given name to value.
117 * 119 *
118 * @param[in] obj A struct whose first element is a pointer to an 120 * @param[in] obj A struct whose first element is a pointer to an