diff 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
line wrap: on
line diff
--- a/opt.h	Fri Dec 19 22:29:30 2008 +0000
+++ b/opt.h	Fri Dec 19 22:37:56 2008 +0000
@@ -99,6 +99,7 @@
  */
 const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags);
 
+#if LIBAVCODEC_VERSION_MAJOR < 53
 /**
  * @see av_set_string2()
  */
@@ -111,6 +112,7 @@
  * @see av_set_string3()
  */
 attribute_deprecated const AVOption *av_set_string2(void *obj, const char *name, const char *val, int alloc);
+#endif
 
 /**
  * Sets the field of obj with the given name to value.