[vlc-commits] H264 NAL helpers: expose profile compatibility byte
Felix Paul Kühne
git at videolan.org
Thu Jun 25 17:24:45 CEST 2015
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jun 25 17:23:01 2015 +0200| [c3056361547cb64d810fc6429c92a0cc38d1f4fc] | committer: Felix Paul Kühne
H264 NAL helpers: expose profile compatibility byte
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3056361547cb64d810fc6429c92a0cc38d1f4fc
---
modules/packetizer/h264_nal.c | 3 +--
modules/packetizer/h264_nal.h | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index 05e25b5..a2dd888 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -224,8 +224,7 @@ int h264_parse_sps( const uint8_t *p_sps_buf, int i_sps_size,
bs_init( &s, pb_dec, i_dec );
int i_profile_idc = bs_read( &s, 8 );
p_sps->i_profile = i_profile_idc;
- /* Skip constraint_set0123, reserved(4) */
- bs_skip( &s, 1+1+1+1 + 4 );
+ p_sps->i_profile_compatibility = bs_read( &s, 8 );
p_sps->i_level = bs_read( &s, 8 );
/* sps id */
p_sps->i_id = bs_read_ue( &s );
diff --git a/modules/packetizer/h264_nal.h b/modules/packetizer/h264_nal.h
index 4f0f8b8..5a577d4 100644
--- a/modules/packetizer/h264_nal.h
+++ b/modules/packetizer/h264_nal.h
@@ -74,7 +74,7 @@ enum sei_type_e
struct nal_sps
{
int i_id;
- int i_profile, i_level;
+ int i_profile, i_profile_compatibility, i_level;
int i_width, i_height;
int i_log2_max_frame_num;
int b_frame_mbs_only;
More information about the vlc-commits
mailing list