[FFmpeg-devel] [PATCH v1] avformat/rtsp: RTP support buffer_size&pkt_size option
gaojiangjie at live.com
gaojiangjie at live.com
Tue Mar 9 08:21:19 EET 2021
From: Jiangjie Gao <gaojiangjie at live.com>
And forward it to udp.
issue: https://trac.ffmpeg.org/ticket/7517
Signed-off-by: Jiangjie Gao <gaojiangjie at live.com>
---
libavformat/rtsp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 9a2933346e..25bdf475b3 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2506,12 +2506,15 @@ static int rtp_read_header(AVFormatContext *s)
RTSPState *rt = s->priv_data;
const char *p;
AVBPrint sdp;
+ AVDictionary *opts = NULL;
if (!ff_network_init())
return AVERROR(EIO);
+ opts = map_to_opts(rt);
ret = ffurl_open_whitelist(&in, s->url, AVIO_FLAG_READ,
- &s->interrupt_callback, NULL, s->protocol_whitelist, s->protocol_blacklist, NULL);
+ &s->interrupt_callback, &opts, s->protocol_whitelist, s->protocol_blacklist, NULL);
+ av_dict_free(&opts);
if (ret)
goto fail;
--
2.27.0.windows.1
More information about the ffmpeg-devel
mailing list