Fix for interlaced stream (when sps->frame_mbs_only_flag is equal to one)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
/* .ReferenceFrames */
.picture_width_in_mbs_minus1 = sps->pic_width_in_mbs_minus1,
.picture_height_in_mbs_minus1 =
- sps->pic_height_in_map_units_minus1 << !sps->frame_mbs_only_flag,
+ ((sps->pic_height_in_map_units_minus1 + 1) <<
+ !sps->frame_mbs_only_flag) -1,
.bit_depth_luma_minus8 = sps->bit_depth_luma_minus8,
.bit_depth_chroma_minus8 = sps->bit_depth_chroma_minus8,
.num_ref_frames = sps->num_ref_frames,