提交 6e911898 编写于 作者: L Limin Wang

avformat/rtpproto: av_dict_set() -> av_dict_set_int()

Signed-off-by: NLimin Wang <lance.lmwang@gmail.com>
上级 cb14c6ff
......@@ -301,8 +301,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
goto fail;
}
if (s->ttl > 0) {
snprintf(buf, sizeof (buf), "%d", s->ttl);
av_dict_set(&fec_opts, "ttl", buf, 0);
av_dict_set_int(&fec_opts, "ttl", s->ttl, 0);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册