You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffprobe: make upcase_string() ignore non-ASCII characters
This is required as some section names may contain non-ASCII characters (e.g. '_').
This commit is contained in:
@@ -417,7 +417,11 @@ 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++)
|
||||
dst[i] = src[i]-32;
|
||||
if (src[i] >= 'a' && src[i] <= 'z') {
|
||||
dst[i] = src[i]-32;
|
||||
} else {
|
||||
dst[i] = src[i];
|
||||
}
|
||||
dst[i] = 0;
|
||||
return dst;
|
||||
}
|
||||
|
Reference in New Issue
Block a user