mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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:
parent
60735deded
commit
188382ca9a
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue