diff --git a/media/libstagefright/binding/H264.cpp b/media/libstagefright/binding/H264.cpp index 36b6a745c477..1f4ebec14d34 100644 --- a/media/libstagefright/binding/H264.cpp +++ b/media/libstagefright/binding/H264.cpp @@ -718,11 +718,11 @@ H264::vui_parameters(BitReader& aBr, SPSData& aDest) READUE(chroma_sample_loc_type_bottom_field, 5); } - aDest.timing_info_present_flag = aBr.ReadBit(); - if (aDest.timing_info_present_flag) { - aDest.num_units_in_tick = aBr.ReadBits(32); - aDest.time_scale = aBr.ReadBits(32); - aDest.fixed_frame_rate_flag = aBr.ReadBit(); + bool timing_info_present_flag = aBr.ReadBit(); + if (timing_info_present_flag) { + aBr.ReadBits(32); // num_units_in_tick + aBr.ReadBits(32); // time_scale + aBr.ReadBit(); // fixed_frame_rate_flag } return true; } diff --git a/media/libstagefright/binding/include/mp4_demuxer/H264.h b/media/libstagefright/binding/include/mp4_demuxer/H264.h index c35f82d15b9f..25772c2b7db7 100644 --- a/media/libstagefright/binding/include/mp4_demuxer/H264.h +++ b/media/libstagefright/binding/include/mp4_demuxer/H264.h @@ -396,10 +396,6 @@ struct SPSData */ uint8_t chroma_sample_loc_type_top_field; uint8_t chroma_sample_loc_type_bottom_field; - bool timing_info_present_flag; - uint32_t num_units_in_tick; - uint32_t time_scale; - bool fixed_frame_rate_flag; bool scaling_matrix_present; uint8_t scaling_matrix4x4[6][16];