[vlc-commits] H264 Packetizer: use defines for profiles

Jean-Baptiste Kempf git at videolan.org
Wed Feb 4 11:21:22 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Feb  4 11:20:50 2015 +0100| [d43b43585b88236310ea6425072c09f215843985] | committer: Jean-Baptiste Kempf

H264 Packetizer: use defines for profiles

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

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

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 76f7d76..7fcb69c 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -41,6 +41,7 @@
 #include <vlc_block_helper.h>
 #include <vlc_bits.h>
 #include "../codec/cc.h"
+#include "../codec/h264_nal.h"
 #include "packetizer_helper.h"
 #include "../demux/mpeg/mpeg_parser_helpers.h"
 
@@ -789,10 +790,10 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
         return;
     }
 
-    if( i_profile_idc == 100 || i_profile_idc == 110 ||
-        i_profile_idc == 122 || i_profile_idc == 244 ||
-        i_profile_idc ==  44 || i_profile_idc ==  83 ||
-        i_profile_idc ==  86 )
+    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 )
     {
         /* chroma_format_idc */
         const int i_chroma_format_idc = bs_read_ue( &s );



More information about the vlc-commits mailing list