mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
codecparsers: {h264,h265}parser: Fix typo around SEI nalu generator
Fix to create correct SEI nalu when the size of payloadType and/or payloadType is larger than 255 (0xff) Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1601 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1106>
This commit is contained in:
parent
7256ddb74a
commit
4dd0c6ce44
2 changed files with 4 additions and 4 deletions
|
@ -3142,14 +3142,14 @@ gst_h264_create_sei_memory_internal (guint8 nal_prefix_size,
|
|||
/* write payload type bytes */
|
||||
while (payload_type_data >= 0xff) {
|
||||
WRITE_UINT8 (&nw, 0xff, 8);
|
||||
payload_type_data -= -0xff;
|
||||
payload_type_data -= 0xff;
|
||||
}
|
||||
WRITE_UINT8 (&nw, payload_type_data, 8);
|
||||
|
||||
/* write payload size bytes */
|
||||
while (payload_size_data >= 0xff) {
|
||||
WRITE_UINT8 (&nw, 0xff, 8);
|
||||
payload_size_data -= -0xff;
|
||||
payload_size_data -= 0xff;
|
||||
}
|
||||
WRITE_UINT8 (&nw, payload_size_data, 8);
|
||||
|
||||
|
|
|
@ -3987,14 +3987,14 @@ gst_h265_create_sei_memory_internal (guint8 layer_id, guint8 temporal_id_plus1,
|
|||
/* write payload type bytes */
|
||||
while (payload_type_data >= 0xff) {
|
||||
WRITE_UINT8 (&nw, 0xff, 8);
|
||||
payload_type_data -= -0xff;
|
||||
payload_type_data -= 0xff;
|
||||
}
|
||||
WRITE_UINT8 (&nw, payload_type_data, 8);
|
||||
|
||||
/* write payload size bytes */
|
||||
while (payload_size_data >= 0xff) {
|
||||
WRITE_UINT8 (&nw, 0xff, 8);
|
||||
payload_size_data -= -0xff;
|
||||
payload_size_data -= 0xff;
|
||||
}
|
||||
WRITE_UINT8 (&nw, payload_size_data, 8);
|
||||
|
||||
|
|
Loading…
Reference in a new issue