diff options
author | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-01-28 22:15:47 +0100 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-02-01 20:37:02 +0100 |
commit | fe9a3fbe42ebe5debd57550313ed4c3a065f1770 (patch) | |
tree | 81adc33f70bf1030ef3cea4e3abe3e99ab4ec2c4 /libavcodec/h264_ps.c | |
parent | e86e858111501650bb9ce8e39282e20c57bac913 (diff) | |
download | ffmpeg-fe9a3fbe42ebe5debd57550313ed4c3a065f1770.tar.gz |
h264: Add Intra and Constrained Baseline profiles to avctx.profile
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r-- | libavcodec/h264_ps.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 876bcb2a43..3fe5815ea6 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -267,16 +267,16 @@ static void decode_scaling_matrices(H264Context *h, SPS *sps, PPS *pps, int is_s int ff_h264_decode_seq_parameter_set(H264Context *h){ MpegEncContext * const s = &h->s; - int profile_idc, level_idc; + int profile_idc, level_idc, constraint_set_flags = 0; unsigned int sps_id; int i; SPS *sps; profile_idc= get_bits(&s->gb, 8); - get_bits1(&s->gb); //constraint_set0_flag - get_bits1(&s->gb); //constraint_set1_flag - get_bits1(&s->gb); //constraint_set2_flag - get_bits1(&s->gb); //constraint_set3_flag + constraint_set_flags |= get_bits1(&s->gb) << 0; //constraint_set0_flag + constraint_set_flags |= get_bits1(&s->gb) << 1; //constraint_set1_flag + constraint_set_flags |= get_bits1(&s->gb) << 2; //constraint_set2_flag + constraint_set_flags |= get_bits1(&s->gb) << 3; //constraint_set3_flag get_bits(&s->gb, 4); // reserved level_idc= get_bits(&s->gb, 8); sps_id= get_ue_golomb_31(&s->gb); @@ -291,6 +291,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){ sps->time_offset_length = 24; sps->profile_idc= profile_idc; + sps->constraint_set_flags = constraint_set_flags; sps->level_idc= level_idc; memset(sps->scaling_matrix4, 16, sizeof(sps->scaling_matrix4)); |