mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20: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,7 +944,11 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
|||
memcpy (map.data + sizeof (sync_bytes), payload, nalu_size);
|
||||
gst_buffer_unmap (outbuf, &map);
|
||||
|
||||
gst_adapter_push (rtph264depay->adapter, outbuf);
|
||||
outbuf =
|
||||
gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, timestamp,
|
||||
marker);
|
||||
if (outbuf)
|
||||
gst_adapter_push (rtph264depay->adapter, outbuf);
|
||||
|
||||
payload += nalu_size;
|
||||
payload_len -= nalu_size;
|
||||
|
|
Loading…
Reference in a new issue