[vlc-commits] packetizer: h264: weaken avcC check because of quicktime

Francois Cartegnie git at videolan.org
Thu May 26 20:51:17 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 26 20:49:10 2016 +0200| [8efa6ab49175f487aafb7050b9fc6f491d9e9505] | committer: Francois Cartegnie

packetizer: h264: weaken avcC check because of quicktime

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

 modules/packetizer/h264_nal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index ea2a036..8c14f08 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -40,7 +40,7 @@ bool h264_isavcC( const uint8_t *p_buf, size_t i_buf )
              p_buf[0] == 0x01 &&
             (p_buf[4] & 0xFC) == 0xFC &&
             (p_buf[4] & 0x03) != 0x02 &&
-            (p_buf[5] & 0xE0) == 0xE0 );
+            (p_buf[5] & 0x1F) > 0x00 ); /* Broken quicktime streams using reserved bits */
 }
 
 static size_t get_avcC_to_AnnexB_NAL_size( const uint8_t *p_buf, size_t i_buf )



More information about the vlc-commits mailing list