Skip to content

Commit

Permalink
janus-pp-rec - Fix extension parsing (#2384)
Browse files Browse the repository at this point in the history
Co-authored-by: ihusejnovic <[email protected]>
  • Loading branch information
ihusejnovic and ihusejnovic committed Oct 1, 2020
1 parent b60cb20 commit 5655b6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions postprocessing/janus-pp-rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,18 +1169,18 @@ static int janus_pp_rtp_header_extension_find(char *buf, int len, int id,
uint8_t extid = 0, idlen;
int i = 0;
while(i < extlen) {
extid = buf[hlen+i] >> 4;
extid = (uint8_t)buf[hlen+i] >> 4;
if(extid == reserved) {
break;
} else if(extid == padding) {
i++;
continue;
}
idlen = (buf[hlen+i] & 0xF)+1;
idlen = ((uint8_t)buf[hlen+i] & 0xF)+1;
if(extid == id) {
/* Found! */
if(byte)
*byte = buf[hlen+i+1];
*byte = (uint8_t)buf[hlen+i+1];
if(word)
*word = ntohl(*(uint32_t *)(buf+hlen+i));
if(ref)
Expand Down

0 comments on commit 5655b6c

Please sign in to comment.