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

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2020-05-25 20:19:28 +08:00
parent 6e911898fc
commit cca8f53a8e

View File

@ -291,8 +291,7 @@ static int prompeg_open(URLContext *h, const char *uri, int flags) {
}
if (s->ttl > 0) {
snprintf(buf, sizeof (buf), "%d", s->ttl);
av_dict_set(&udp_opts, "ttl", buf, 0);
av_dict_set_int(&udp_opts, "ttl", s->ttl, 0);
}
ff_url_join(buf, sizeof (buf), "udp", NULL, hostname, rtp_port + 2, NULL);