aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-12-19 22:29:30 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-12-19 22:29:30 +0000
commitf16dd7e65a936def99ff00f946544f75ee2f4f73 (patch)
tree7ae4ec1881e85d80c17f2fde4c951109549b8a1b /libavcodec
parentaac8b76983e340bc744d3542d676f72efa3b474f (diff)
downloadffmpeg-f16dd7e65a936def99ff00f946544f75ee2f4f73.tar.gz
Remove calls to deprecated av_set_string2() with calls to
av_set_string3(). Originally committed as revision 16241 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/opt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index dbe05b3194..1c0bb6c7a8 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -207,7 +207,10 @@ const AVOption *av_set_string2(void *obj, const char *name, const char *val, int
}
const AVOption *av_set_string(void *obj, const char *name, const char *val){
- return av_set_string2(obj, name, val, 0);
+ const AVOption *o;
+ if (av_set_string3(obj, name, val, 0, &o) < 0)
+ return NULL;
+ return o;
}
const AVOption *av_set_double(void *obj, const char *name, double n){