From db05b656b884e133ac19487a4e13ab1ff9a423f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 11 Aug 2025 20:27:10 +0200 Subject: [PATCH] avformat/lrcdec: use av_sscanf to avoid possible locale issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- libavformat/lrcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/lrcdec.c b/libavformat/lrcdec.c index e3e091a61a..ebef87da6c 100644 --- a/libavformat/lrcdec.c +++ b/libavformat/lrcdec.c @@ -88,7 +88,7 @@ static int64_t read_ts(const char *p, int64_t *start) if(p[offset] != '[') { return 0; } - int ret = sscanf(p, "%2[[-]%"SCNu32":%lf]", prefix, &mm, &ss); + int ret = av_sscanf(p, "%2[[-]%"SCNu32":%lf]", prefix, &mm, &ss); if (ret != 3 || prefix[0] != '[' || ss < 0 || ss > 60) { return 0; }