mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/rtsp: Use av_dict_set_int()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f748ca801e
commit
6c8f96f18b
|
@ -122,12 +122,9 @@ static const AVOption rtp_options[] = {
|
||||||
static AVDictionary *map_to_opts(RTSPState *rt)
|
static AVDictionary *map_to_opts(RTSPState *rt)
|
||||||
{
|
{
|
||||||
AVDictionary *opts = NULL;
|
AVDictionary *opts = NULL;
|
||||||
char buf[256];
|
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%d", rt->buffer_size);
|
av_dict_set_int(&opts, "buffer_size", rt->buffer_size, 0);
|
||||||
av_dict_set(&opts, "buffer_size", buf, 0);
|
av_dict_set_int(&opts, "pkt_size", rt->pkt_size, 0);
|
||||||
snprintf(buf, sizeof(buf), "%d", rt->pkt_size);
|
|
||||||
av_dict_set(&opts, "pkt_size", buf, 0);
|
|
||||||
|
|
||||||
return opts;
|
return opts;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue