mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
h264depay: make sure we call handle_nal for each NAL
Call handle_nal for each NAL in the STAP-A RTP packet. This makes sure we correctly extract the SPS and PPS. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730999
This commit is contained in:
parent
edc7d9027e
commit
a5a7649831
1 changed files with 5 additions and 1 deletions
|
@ -944,6 +944,10 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
||||||
memcpy (map.data + sizeof (sync_bytes), payload, nalu_size);
|
memcpy (map.data + sizeof (sync_bytes), payload, nalu_size);
|
||||||
gst_buffer_unmap (outbuf, &map);
|
gst_buffer_unmap (outbuf, &map);
|
||||||
|
|
||||||
|
outbuf =
|
||||||
|
gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, timestamp,
|
||||||
|
marker);
|
||||||
|
if (outbuf)
|
||||||
gst_adapter_push (rtph264depay->adapter, outbuf);
|
gst_adapter_push (rtph264depay->adapter, outbuf);
|
||||||
|
|
||||||
payload += nalu_size;
|
payload += nalu_size;
|
||||||
|
|
Loading…
Reference in a new issue