diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-28 20:57:29 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-01-28 20:57:29 +0000 |
commit | dd0cd3d2730b93958a34dea7c7890e71d2d72bf6 (patch) | |
tree | 48c58a0e7833ee80829911b82d99b5a968be6803 /libavcodec/h264_parser.c | |
parent | 88517e9f9d684e58a641cc77b68df377d82fad5b (diff) | |
download | ffmpeg-dd0cd3d2730b93958a34dea7c7890e71d2d72bf6.tar.gz |
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
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r-- | libavcodec/h264_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index d9af8c9c36..521597dfa4 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -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{ |