[vlc-commits] stl: remove always true comparison

Rémi Denis-Courmont git at videolan.org
Sat Jan 28 16:36:43 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 28 17:23:45 2012 +0200| [1bd9b035d81b65427fb1c6a11acc2556541ab411] | committer: Rémi Denis-Courmont

stl: remove always true comparison

uint8_t cannot be more than 0xff.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1bd9b035d81b65427fb1c6a11acc2556541ab411
---

 modules/codec/stl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/stl.c b/modules/codec/stl.c
index d534b52..99c55fd 100644
--- a/modules/codec/stl.c
+++ b/modules/codec/stl.c
@@ -92,7 +92,7 @@ static char *ParseText(uint8_t *data, int size, const char *charset)
         char tmp[16] = "";
         char *t = tmp;
         if ((code >= 0x20 && code <= 0x7e) ||
-            (code >= 0xa0 && code <= 0xff) )
+            (code >= 0xa0) )
             snprintf(tmp, sizeof(tmp), "%c", code);
 #if 0
         else if (code == 0x80)



More information about the vlc-commits mailing list