diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2025-08-11 20:27:10 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2025-08-11 20:31:09 +0200 |
commit | db05b656b884e133ac19487a4e13ab1ff9a423f5 (patch) | |
tree | 7e63850043f4eec6b9739db05659db682144fbcc | |
parent | c74bc74398e7a1e235fdf51d0dd2dfb942626c82 (diff) | |
download | ffmpeg-db05b656b884e133ac19487a4e13ab1ff9a423f5.tar.gz |
avformat/lrcdec: use av_sscanf to avoid possible locale issues
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
-rw-r--r-- | libavformat/lrcdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |