changeset 8406:ea27308fa023 libavcodec

Remove calls to deprecated av_set_string2() with calls to av_set_string3().
author stefano
date Fri, 19 Dec 2008 22:29:30 +0000
parents f94a6d6df87e
children 8903ad65c412
files opt.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/opt.c	Fri Dec 19 14:49:17 2008 +0000
+++ b/opt.c	Fri Dec 19 22:29:30 2008 +0000
@@ -207,7 +207,10 @@
 }
 
 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){