[dvblast-devel] fix dead code

Christophe Massiot git at videolan.org
Wed Oct 23 22:29:22 CEST 2013


dvblast | branch: master | Christophe Massiot <massiot at via.ecp.fr> | Wed Oct 23 21:59:31 2013 +0200| [173eed2a8addf22d654d0db1984a2ab38cdb92c8] | committer: Christophe Massiot

fix dead code

(spotted by Coverity: CID 1109724)

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=173eed2a8addf22d654d0db1984a2ab38cdb92c8
---

 demux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/demux.c b/demux.c
index 361538c..fbe03be 100644
--- a/demux.c
+++ b/demux.c
@@ -2723,7 +2723,7 @@ static void HandlePSIPacket( uint8_t *p_ts, mtime_t i_dts )
  *****************************************************************************/
 static const char *h222_stream_type_desc(uint8_t i_stream_type) {
     /* See ISO/IEC 13818-1 : 2000 (E) | Table 2-29 - Stream type assignments, Page 66 (48) */
-    if (i_stream_type == 0 || (i_stream_type > 0x1c && i_stream_type < 0x7e))
+    if (i_stream_type == 0)
         return "Reserved stream";
     switch (i_stream_type) {
         case 0x01: return "11172-2 video (MPEG-1)";



More information about the dvblast-devel mailing list