mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtph265pay: Don't drop second byte of NAL header
At least keep 2 bytes per NAL even if the second one is 0, the second byte of the NAL header could very well be 0.
This commit is contained in:
parent
6fed30c48e
commit
43e83695fd
1 changed files with 1 additions and 1 deletions
|
@ -1617,7 +1617,7 @@ gst_rtp_h265_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
size = nal_len;
|
size = nal_len;
|
||||||
data = gst_adapter_map (rtph265pay->adapter, size);
|
data = gst_adapter_map (rtph265pay->adapter, size);
|
||||||
if (i + 1 != nal_queue->len || !draining)
|
if (i + 1 != nal_queue->len || !draining)
|
||||||
for (; size > 1 && data[size - 1] == 0x0; size--)
|
for (; size > 2 && data[size - 1] == 0x0; size--)
|
||||||
/* skip */ ;
|
/* skip */ ;
|
||||||
|
|
||||||
paybuf = gst_adapter_take_buffer (rtph265pay->adapter, size);
|
paybuf = gst_adapter_take_buffer (rtph265pay->adapter, size);
|
||||||
|
|
Loading…
Reference in a new issue