mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
ffprobe: use av_toupper() in upcase_string()
This commit is contained in:
parent
31801ded9a
commit
0cc8864687
@ -423,11 +423,7 @@ static inline char *upcase_string(char *dst, size_t dst_size, const char *src)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; src[i] && i < dst_size-1; i++)
|
||||
if (src[i] >= 'a' && src[i] <= 'z') {
|
||||
dst[i] = src[i]-32;
|
||||
} else {
|
||||
dst[i] = src[i];
|
||||
}
|
||||
dst[i] = av_toupper(src[i]);
|
||||
dst[i] = 0;
|
||||
return dst;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user