summaryrefslogtreecommitdiff
path: root/ffserver.c
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 /ffserver.c
parentaac8b76983e340bc744d3542d676f72efa3b474f (diff)
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 'ffserver.c')
-rw-r--r--ffserver.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ffserver.c b/ffserver.c
index d02b4d057c..d7bd09227b 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3735,13 +3735,11 @@ static void load_module(const char *filename)
static int ffserver_opt_default(const char *opt, const char *arg,
AVCodecContext *avctx, int type)
{
- const AVOption *o = NULL;
+ int ret = 0;
const AVOption *o2 = av_find_opt(avctx, opt, NULL, type, type);
if(o2)
- o = av_set_string2(avctx, opt, arg, 1);
- if(!o)
- return -1;
- return 0;
+ ret = av_set_string3(avctx, opt, arg, 1, NULL);
+ return ret;
}
static int parse_ffconfig(const char *filename)