Commit d43b4358 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

H264 Packetizer: use defines for profiles

parent 07461467
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment