diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2021-08-14 18:43:03 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2022-03-30 10:30:02 +0800 |
commit | 3721aaeaaae9f817abb843117ae8dae1dc280a7f (patch) | |
tree | c9a79126e65d335c183ffaad72ca18d8c188f7e6 | |
parent | 397a777aa116f7da0d8c23bfc21874c3381e1c71 (diff) | |
download | ffmpeg-3721aaeaaae9f817abb843117ae8dae1dc280a7f.tar.gz |
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@tencent.com>
Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
-rw-r--r-- | libavformat/libsrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |