Export H264 profile and level in AVCodecContext.

Patch by Rafaël Carré, rafael D carre A gmail

Originally committed as revision 21517 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Rafaël Carré
2010-01-28 20:57:29 +00:00
committed by Carl Eugen Hoyos
parent 88517e9f9d
commit dd0cd3d273
3 changed files with 20 additions and 1 deletions

View File

@@ -185,6 +185,9 @@ 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->level = h->sps.level_idc;
if(h->sps.frame_mbs_only_flag){
h->s.picture_structure= PICT_FRAME;
}else{