[vlc-commits] packetizer: h264: store mbaff flag

Francois Cartegnie git at videolan.org
Fri Mar 24 17:05:25 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar 24 14:47:57 2017 +0100| [15c57aa4f18929dc2ad23e10a2118b2229becdf7] | committer: Francois Cartegnie

packetizer: h264: store mbaff flag

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15c57aa4f18929dc2ad23e10a2118b2229becdf7
---

 modules/packetizer/h264_nal.c | 2 +-
 modules/packetizer/h264_nal.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index d50331a..bac39f7 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -367,7 +367,7 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
     /* b_frame_mbs_only */
     p_sps->frame_mbs_only_flag = bs_read( p_bs, 1 );
     if( !p_sps->frame_mbs_only_flag )
-        bs_skip( p_bs, 1 );
+        p_sps->mb_adaptive_frame_field_flag = bs_skip( p_bs, 1 );
 
     /* b_direct8x8_inference */
     bs_skip( p_bs, 1 );
diff --git a/modules/packetizer/h264_nal.h b/modules/packetizer/h264_nal.h
index 42dd24d..6327055 100644
--- a/modules/packetizer/h264_nal.h
+++ b/modules/packetizer/h264_nal.h
@@ -103,6 +103,7 @@ struct h264_sequence_parameter_set_t
         uint32_t bottom_offset;
     } frame_crop;
     uint8_t frame_mbs_only_flag;
+    uint8_t mb_adaptive_frame_field_flag;
     int i_log2_max_frame_num;
     int i_pic_order_cnt_type;
     int i_delta_pic_order_always_zero_flag;



More information about the vlc-commits mailing list