[FFmpeg-cvslog] avformat/libsrt: use a larger buffer for find_info_tag
Zhao Zhili
git at videolan.org
Wed Mar 30 05:30:24 EEST 2022
ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Sat Aug 14 18:43:03 2021 +0800| [3721aaeaaae9f817abb843117ae8dae1dc280a7f] | committer: Steven Liu
avformat/libsrt: use a larger buffer for find_info_tag
The upper limit of strlen(streamid) is 512. Use a larger buffer for
future proof, for example, deal with percent-encoding.
Reviewed-by: Zhao Jun <barryjzhao at tencent.com>
Signed-off-by: Steven Liu <liuqi05 at kuaishou.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3721aaeaaae9f817abb843117ae8dae1dc280a7f
---
libavformat/libsrt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index 1610ce8318..cd8f5b1e7d 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -529,7 +529,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags)
{
SRTContext *s = h->priv_data;
const char * p;
- char buf[256];
+ char buf[1024];
int ret = 0;
if (srt_startup() < 0) {
More information about the ffmpeg-cvslog
mailing list