diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-02-22 14:03:02 +0000 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-02-22 14:06:02 +0000 |
commit | 93cd4be8d595eb7f540297a8442d36006f05d373 (patch) | |
tree | a7cad9f46e8c8213406ffdb43b76e040a40bd5a4 | |
parent | 7150b89c59b22e2b73d2926ed7ac0d35dfd3b9e5 (diff) | |
download | gstreamer-plugins-good-93cd4be8d595eb7f540297a8442d36006f05d373.tar.gz |
rtpvp9pay: add missing break
VP9_PAY_PICTURE_ID_7BITS and VP9_PAY_PICTURE_ID_15BITS are mutually
exclusive options of the picture-id-mode. We can break after the
first case.
1 or 2 bytes need to be added to the header length depending on the
PictureID size.
https://tools.ietf.org/html/draft-uberti-payload-vp9-00#section-4.2
CID 1353479
-rw-r--r-- | gst/rtp/gstrtpvp9pay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpvp9pay.c b/gst/rtp/gstrtpvp9pay.c index 281ceaa84..9f80fe5ca 100644 --- a/gst/rtp/gstrtpvp9pay.c +++ b/gst/rtp/gstrtpvp9pay.c @@ -308,6 +308,7 @@ gst_rtp_vp9_calc_header_len (GstRtpVP9Pay * self, gboolean start) switch (self->picture_id_mode) { case VP9_PAY_PICTURE_ID_7BITS: len += 1; + break; case VP9_PAY_PICTURE_ID_15BITS: len += 2; default: |