mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avformat/librist: simplify secret strlcpy
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
deffb5ddce
commit
7b0832dea8
@ -158,7 +158,7 @@ static int librist_open(URLContext *h, const char *uri, int flags)
|
||||
}
|
||||
|
||||
if (s->secret && peer_config->secret[0] == 0)
|
||||
av_strlcpy(peer_config->secret, s->secret, FFMIN(RIST_MAX_STRING_SHORT - 1, strlen(s->secret)));
|
||||
av_strlcpy(peer_config->secret, s->secret, RIST_MAX_STRING_SHORT);
|
||||
|
||||
if (s->secret && (s->encryption == 128 || s->encryption == 256))
|
||||
peer_config->key_size = s->encryption;
|
||||
|
Loading…
x
Reference in New Issue
Block a user