projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fed30c
)
rtph265pay: Don't drop second byte of NAL header
author
Olivier CrĂȘte
<olivier.crete@collabora.com>
Thu, 27 Jun 2019 23:46:01 +0000
(19:46 -0400)
committer
Nicolas Dufresne
<nicolas@ndufresne.ca>
Wed, 3 Jul 2019 19:05:29 +0000
(19:05 +0000)
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.
gst/rtp/gstrtph265pay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtph265pay.c
b/gst/rtp/gstrtph265pay.c
index
3769acb
..
e0be54d
100644
(file)
--- a/
gst/rtp/gstrtph265pay.c
+++ b/
gst/rtp/gstrtph265pay.c
@@
-1617,7
+1617,7
@@
gst_rtp_h265_pay_handle_buffer (GstRTPBasePayload * basepayload,
size = nal_len;
data = gst_adapter_map (rtph265pay->adapter, size);
if (i + 1 != nal_queue->len || !draining)
- for (; size >
1
&& data[size - 1] == 0x0; size--)
+ for (; size >
2
&& data[size - 1] == 0x0; size--)
/* skip */ ;
paybuf = gst_adapter_take_buffer (rtph265pay->adapter, size);