mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
va: h264dec: Fix picture_height_in_mbs_minus1
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>
This commit is contained in:
parent
a9ae00a2c1
commit
215835b201
1 changed files with 2 additions and 1 deletions
|
@ -371,7 +371,8 @@ gst_va_h264_dec_start_picture (GstH264Decoder * decoder,
|
|||
/* .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,
|
||||
|
|
Loading…
Reference in a new issue