mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
This commit is contained in:
parent
7150b89c59
commit
93cd4be8d5
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue