avformat/rtpproto: 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:09 +08:00
parent cb14c6ff8f
commit 6e911898fc
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}