[vlc-commits] cea708: remove tautologies, fix uninitialized warning

Rémi Denis-Courmont git at videolan.org
Sun Jul 14 11:29:51 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 14 12:12:25 2019 +0300| [2031ff683a53ed76dd94172fac1eb66f40cbb65a] | committer: Rémi Denis-Courmont

cea708: remove tautologies, fix uninitialized warning

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

 modules/codec/cea708.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/cea708.c b/modules/codec/cea708.c
index e5438edc98..01860e1650 100644
--- a/modules/codec/cea708.c
+++ b/modules/codec/cea708.c
@@ -1681,11 +1681,11 @@ static void CEA708_Decode_ServiceBuffer( cea708_t *h )
 
         if( c < 0x20 )
             i_ret = CEA708_Decode_C0( c, h );
-        else if( c >= 0x20 && c <=0x7F )
+        else if( c <= 0x7F )
             i_ret = CEA708_Decode_G0( c, h );
-        else if( c >= 0x80 && c <= 0x9F )
+        else if( c <= 0x9F )
             i_ret = CEA708_Decode_C1( c, h );
-        else if( c > 0x9F )
+        else
             i_ret = CEA708_Decode_G1( c, h );
 
         if( i_ret & CEA708_STATUS_OUTPUT )



More information about the vlc-commits mailing list