avformat/librist: simplify secret strlcpy

Signed-off-by: Marton Balint <cus@passwd.hu>
pull/371/head
Marton Balint 4 years ago
parent deffb5ddce
commit 7b0832dea8
  1. 2
      libavformat/librist.c

@ -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…
Cancel
Save