Skip to content

Fix parsing of MAI SEI message

  1. Call resizeArrays() after intrinsic_params_equal_flag is read
  2. Expect that length of mantissas can be equal to 0 according to SEI spec:

mantissa_focal_length_x[ i ] specifies the mantissa part of the focal length of the i-th camera in the horizontal direction. The length of the mantissa_focal_length_x[ i ] syntax element in units of bits is variable and determined as follows:

  • If exponent_focal_length_x[ i ] is equal to 0, the length is Max( 0, prec_focal_length − 30 ).
  • Otherwise (exponent_focal_length_x[ i ] is in the range of 0 to 63, exclusive), the length is Max( 0, exponent_focal_length_x[ i ] + prec_focal_length − 31 ).

Merge request reports