h264: Add Intra and Constrained Baseline profiles to avctx.profile

(cherry picked from commit fe9a3fbe42)
This commit is contained in:
Janne Grunau
2011-01-28 22:15:47 +01:00
committed by Michael Niedermayer
parent 8a92ec71b3
commit 94e3e83f13
5 changed files with 56 additions and 15 deletions

View File

@@ -187,7 +187,7 @@ static inline int parse_nal_units(AVCodecParserContext *s,
h->sps = *h->sps_buffers[h->pps.sps_id];
h->frame_num = get_bits(&h->s.gb, h->sps.log2_max_frame_num);
avctx->profile = h->sps.profile_idc;
avctx->profile = ff_h264_get_profile(&h->sps);
avctx->level = h->sps.level_idc;
if(h->sps.frame_mbs_only_flag){