[vlc-commits] packetizer: hevc: really fix DCR test

Francois Cartegnie git at videolan.org
Mon Sep 12 14:22:29 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Sep 12 14:18:58 2016 +0200| [de41583326b813e4821744c5d6291debc4355b5a] | committer: Francois Cartegnie

packetizer: hevc: really fix DCR test

As hevc DCR can have Profile set to None 0x0

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

 modules/packetizer/hevc_nal.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/packetizer/hevc_nal.h b/modules/packetizer/hevc_nal.h
index fc64112..ad06819 100644
--- a/modules/packetizer/hevc_nal.h
+++ b/modules/packetizer/hevc_nal.h
@@ -121,8 +121,7 @@ enum hevc_slice_type_e
 static inline bool hevc_ishvcC( const uint8_t *p_buf, size_t i_buf )
 {
     return ( i_buf >= HEVC_MIN_HVCC_SIZE &&
-             p_buf[0] != 0x00 &&
-             p_buf[1] != 0x00
+             p_buf[0] != 0x00
 /*          /!\Broken quicktime streams does not respect reserved bits
             (p_buf[13] & 0xF0) == 0xF0 && // Match all reserved bits
             (p_buf[15] & 0xFC) == 0xFC &&



More information about the vlc-commits mailing list