diff options
author | Yubo Xie <xyb@xyb.name> | 2022-04-06 12:52:38 +0000 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2022-04-27 20:47:59 +0800 |
commit | 7795f045a06fe95c3af95f70928088443747c85d (patch) | |
tree | a75a5a48d654737ee64476cd16e11aff7a0913b6 /libavformat/rtspenc.c | |
parent | d114f064c6e9294d6cd0453a51cac584120e6799 (diff) | |
download | ffmpeg-7795f045a06fe95c3af95f70928088443747c85d.tar.gz |
libavformat/rtsp: pkt_size option is not honored in rtsp
Signed-off-by: xyb <xyb@xyb.name>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavformat/rtspenc.c')
-rw-r--r-- | libavformat/rtspenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index 2a00b3e18d..5c7e0b4e8b 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -174,7 +174,7 @@ int ff_rtsp_tcp_write_packet(AVFormatContext *s, RTSPStream *rtsp_st) size -= packet_len; } av_free(buf); - return ffio_open_dyn_packet_buf(&rtpctx->pb, RTSP_TCP_MAX_PACKET_SIZE); + return ffio_open_dyn_packet_buf(&rtpctx->pb, rt->pkt_size); } static int rtsp_write_packet(AVFormatContext *s, AVPacket *pkt) |