[vlc-commits] packetizer: h264: update sps nal parsing

Francois Cartegnie git at videolan.org
Mon Nov 30 13:01:54 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 30 12:08:00 2015 +0100| [891fbd39199ce972fa141df65c1719c527e5416e] | committer: Francois Cartegnie

packetizer: h264: update sps nal parsing

chroma/scaling/matrix is on HIGH profile SPS
(as in 14496-10:2012)

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

 modules/packetizer/h264_nal.c |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index 1586545..60c4f8c 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -420,10 +420,15 @@ int h264_parse_sps( const uint8_t *p_sps_buf, int i_sps_size,
         return -1;
     }
 
-    if( i_profile_idc == PROFILE_H264_HIGH || i_profile_idc == PROFILE_H264_HIGH_10 ||
-        i_profile_idc == PROFILE_H264_HIGH_422 || i_profile_idc == PROFILE_H264_HIGH_444_PREDICTIVE ||
-        i_profile_idc ==  PROFILE_H264_CAVLC_INTRA || i_profile_idc ==  PROFILE_H264_SVC_BASELINE ||
-        i_profile_idc ==  PROFILE_H264_SVC_HIGH )
+    if( i_profile_idc == PROFILE_H264_HIGH ||
+        i_profile_idc == PROFILE_H264_HIGH_10 ||
+        i_profile_idc == PROFILE_H264_HIGH_422 ||
+        i_profile_idc == PROFILE_H264_HIGH_444_PREDICTIVE ||
+        i_profile_idc == PROFILE_H264_CAVLC_INTRA ||
+        i_profile_idc == PROFILE_H264_SVC_BASELINE ||
+        i_profile_idc == PROFILE_H264_SVC_HIGH ||
+        i_profile_idc == PROFILE_H264_MVC_MULTIVIEW_HIGH ||
+        i_profile_idc == PROFILE_H264_MVC_STEREO_HIGH )
     {
         /* chroma_format_idc */
         const int i_chroma_format_idc = bs_read_ue( &s );



More information about the vlc-commits mailing list