[FFmpeg-cvslog] ffprobe: use av_toupper() in upcase_string()

Stefano Sabatini git at videolan.org
Tue Jan 10 22:49:48 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Jan 10 22:11:02 2012 +0100| [0cc88646877aea8fc2adb2244f6019707df2082a] | committer: Stefano Sabatini

ffprobe: use av_toupper() in upcase_string()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cc88646877aea8fc2adb2244f6019707df2082a
---

 ffprobe.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index 1d05464..be6ed19 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list