avformat/lrcdec: use av_sscanf to avoid possible locale issues
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
parent
c74bc74398
commit
db05b656b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue