mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtpvp8depay: mark key frames and delta frames properly
https://bugzilla.gnome.org/show_bug.cgi?id=705550
This commit is contained in:
parent
48174164eb
commit
957c8e3e61
1 changed files with 11 additions and 0 deletions
|
@ -164,12 +164,23 @@ gst_rtp_vp8_depay_process (GstRTPBaseDepayload * depay, GstBuffer * buf)
|
|||
/* Marker indicates that it was the last rtp packet for this frame */
|
||||
if (gst_rtp_buffer_get_marker (&rtpbuffer)) {
|
||||
GstBuffer *out;
|
||||
guint8 flag0;
|
||||
|
||||
gst_adapter_copy (self->adapter, &flag0, 0, 1);
|
||||
|
||||
out = gst_adapter_take_buffer (self->adapter,
|
||||
gst_adapter_available (self->adapter));
|
||||
|
||||
self->started = FALSE;
|
||||
gst_rtp_buffer_unmap (&rtpbuffer);
|
||||
|
||||
/* mark keyframes */
|
||||
out = gst_buffer_make_writable (out);
|
||||
if ((flag0 & 0x01))
|
||||
GST_BUFFER_FLAG_SET (out, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||
else
|
||||
GST_BUFFER_FLAG_UNSET (out, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue