diff h264_parser.c @ 11047:ec682347e19e libavcodec

Export H264 profile and level in AVCodecContext. Patch by Rafa¸«³l Carr¸«±, rafael D carre A gmail
author cehoyos
date Thu, 28 Jan 2010 20:57:29 +0000
parents 916df4ea4e64
children 7dd2a45249a9
line wrap: on
line diff
--- a/h264_parser.c	Thu Jan 28 20:15:19 2010 +0000
+++ b/h264_parser.c	Thu Jan 28 20:57:29 2010 +0000
@@ -185,6 +185,9 @@
             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{