From 3edffb13e37ed3beb8c0ca44c6c099e4136ddacd Mon Sep 17 00:00:00 2001 From: Danilo Cesar Lemes de Paula Date: Thu, 1 Mar 2012 14:59:55 -0300 Subject: [PATCH] rtpvp8; fix compatibility with the third draft https://bugzilla.gnome.org/show_bug.cgi?id=671073 --- gst/rtp/gstrtpvp8depay.c | 4 ++-- gst/rtp/gstrtpvp8pay.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/rtp/gstrtpvp8depay.c b/gst/rtp/gstrtpvp8depay.c index 4c163fa70a..48a17ab56f 100644 --- a/gst/rtp/gstrtpvp8depay.c +++ b/gst/rtp/gstrtpvp8depay.c @@ -153,8 +153,8 @@ gst_rtp_vp8_depay_process (GstRTPBaseDepayload * depay, GstBuffer * buf) /* Check L optional header */ if ((data[1] & 0x40) != 0) offset++; - /* Check T optional header */ - if ((data[1] & 0x20) != 0) + /* Check T or K optional headers */ + if ((data[1] & 0x20) != 0 || (data[1] & 0x10) != 0) offset++; } diff --git a/gst/rtp/gstrtpvp8pay.c b/gst/rtp/gstrtpvp8pay.c index e96a0448bd..084c9253a3 100644 --- a/gst/rtp/gstrtpvp8pay.c +++ b/gst/rtp/gstrtpvp8pay.c @@ -323,7 +323,7 @@ gst_rtp_vp8_create_header_buffer (GstRtpVP8Pay * self, guint8 partid, if (self->picture_id_mode != VP8_PAY_NO_PICTURE_ID) { /* Enable X=1 */ p[0] |= 0x80; - /* X: I=1,L=0,T=0,RSVA=0 */ + /* X: I=1,L=0,T=0,K=0,RSV=0 */ p[1] = 0x80; if (self->picture_id_mode == VP8_PAY_PICTURE_ID_7BITS) { /* I: 7 bit picture_id */