From a80995538d8e9955e85ae7dd205c365f5e23f775 Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Mon, 18 Jul 2016 11:35:35 -0700 Subject: [PATCH] Remove restriction on sps:gaps_in_frame_num_value_allowed_flag Packager should not care about this flag, whether it is supported is up to the decoder. Closes #126 Change-Id: I5e05d291eab01375f7f11c951b9dc93c1358c38a --- packager/media/codecs/h264_parser.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/packager/media/codecs/h264_parser.cc b/packager/media/codecs/h264_parser.cc index 252f85cdd4..c73acf4f90 100644 --- a/packager/media/codecs/h264_parser.cc +++ b/packager/media/codecs/h264_parser.cc @@ -675,9 +675,6 @@ H264Parser::Result H264Parser::ParseSps(const Nalu& nalu, int* sps_id) { READ_UE_OR_RETURN(&sps->max_num_ref_frames); READ_BOOL_OR_RETURN(&sps->gaps_in_frame_num_value_allowed_flag); - if (sps->gaps_in_frame_num_value_allowed_flag) - return kUnsupportedStream; - READ_UE_OR_RETURN(&sps->pic_width_in_mbs_minus1); READ_UE_OR_RETURN(&sps->pic_height_in_map_units_minus1);