Fixing rtpvp8 compatibility with the third draft
https://bugzilla.gnome.org/show_bug.cgi?id=671073
This commit is contained in:
parent
228d8808fe
commit
35df907f93
@ -154,8 +154,8 @@ gst_rtp_vp8_depay_process (GstBaseRTPDepayload * depay, GstBuffer * buf)
|
|||||||
/* Check L optional header */
|
/* Check L optional header */
|
||||||
if ((data[1] & 0x40) != 0)
|
if ((data[1] & 0x40) != 0)
|
||||||
offset++;
|
offset++;
|
||||||
/* Check T optional header */
|
/* Check T or K optional headers */
|
||||||
if ((data[1] & 0x20) != 0)
|
if ((data[1] & 0x20) != 0 || (data[1] & 0x10) != 0)
|
||||||
offset++;
|
offset++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ gst_rtp_vp8_create_header_buffer (GstRtpVP8Pay * self, guint8 partid,
|
|||||||
if (self->picture_id_mode != VP8_PAY_NO_PICTURE_ID) {
|
if (self->picture_id_mode != VP8_PAY_NO_PICTURE_ID) {
|
||||||
/* Enable X=1 */
|
/* Enable X=1 */
|
||||||
p[0] |= 0x80;
|
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;
|
p[1] = 0x80;
|
||||||
if (self->picture_id_mode == VP8_PAY_PICTURE_ID_7BITS) {
|
if (self->picture_id_mode == VP8_PAY_PICTURE_ID_7BITS) {
|
||||||
/* I: 7 bit picture_id */
|
/* I: 7 bit picture_id */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user