]> git.sesse.net Git - vlc/commitdiff
H264 Packetizer: use defines for profiles
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Feb 2015 10:20:50 +0000 (11:20 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Feb 2015 10:20:50 +0000 (11:20 +0100)
modules/packetizer/h264.c

index 76f7d76da98642529b6329f7676d7a01be4c9cc5..7fcb69c1bd67bd9ae465b155f09acdacfd917056 100644 (file)
@@ -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 );