From 9c2b677cc646b1f63480b9529c300f195201e91b Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Wed, 23 Oct 2013 21:59:07 +0200 Subject: [PATCH] fix dead code (spotted by Coverity: CID 1109725) --- mpeg/psi/pmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpeg/psi/pmt.h b/mpeg/psi/pmt.h index 56fa17a..52f188d 100644 --- a/mpeg/psi/pmt.h +++ b/mpeg/psi/pmt.h @@ -129,7 +129,7 @@ static inline uint8_t pmtn_get_streamtype(const uint8_t *p_pmt_n) static inline const char *pmt_get_streamtype_txt(uint8_t i_stream_type) { /* ISO/IEC 13818-1 | Table 2-36 - Stream type assignments */ - if (i_stream_type == 0 || (i_stream_type > 0x1c && i_stream_type < 0x7e)) + if (i_stream_type == 0) return "Reserved"; switch (i_stream_type) { case 0x01: return "11172-2 video (MPEG-1)";