[vlc-commits] codec: cea708: remove useless check

Francois Cartegnie git at videolan.org
Tue Oct 2 19:11:18 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct  2 19:06:09 2018 +0200| [0d81cd6aa94cd7b88046f848f12f85002e13642c] | committer: Francois Cartegnie

codec: cea708: remove useless check

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

 modules/codec/cea708.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/codec/cea708.c b/modules/codec/cea708.c
index bf7220359b..c0cea476f7 100644
--- a/modules/codec/cea708.c
+++ b/modules/codec/cea708.c
@@ -87,8 +87,6 @@ static void CEA708_DTVCC_Demux_ServiceBlocks( cea708_demux_t *h, vlc_tick_t i_st
         }
         else if( i_sid == 0x07 )
         {
-            if( i_data < 2 )
-                return;
             i_sid = p_data[1] & 0x3F;
             if( i_sid < 0x07 )
                 return;



More information about the vlc-commits mailing list