Revision a27e90d3 rtp.c

View differences:

rtp.c
158 158
	return 0;
159 159
}
160 160

  
161
int janus_rtp_header_extension_parse_audio_level_and_return(char *buf, int len, int id, int *level) {
162
	uint8_t byte = 0;
163
	if(janus_rtp_header_extension_find(buf, len, id, &byte, NULL) < 0)
164
		return 0;
165
	/* a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level */
166
	// int v = (byte & 0x80) >> 7;
167
	int value = byte & 0x7F;
168
	// JANUS_LOG(LOG_DBG, "%02x --> v=%d, level=%d\n", byte, v, value);
169
	if(level)
170
		*level = value;
171
	return value;
172
}
173

  
161 174
int janus_rtp_header_extension_parse_video_orientation(char *buf, int len, int id,
162 175
		gboolean *c, gboolean *f, gboolean *r1, gboolean *r0) {
163 176
	uint8_t byte = 0;

Also available in: Unified diff