qsvh264enc: Fix profile and level setting in codec data

The profile field in SPS is located after header byte

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2012>
This commit is contained in:
Seungha Yang 2022-03-24 02:43:43 +09:00
parent 60735deded
commit 188382ca9a

View file

@ -1345,7 +1345,7 @@ gst_qsv_h264_enc_set_output_state (GstQsvEncoder * encoder,
return FALSE;
}
data = sps_nalu.data + sps_nalu.offset;
data = sps_nalu.data + sps_nalu.offset + sps_nalu.header_bytes;
profile_idc = data[0];
profile_comp = data[1];
level_idc = data[2];