Skip to content

Commit dd340dd

Browse files
rogurotusrainliu
authored andcommitted
fix
1 parent 250a30c commit dd340dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtp/src/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Marshal for Header {
311311
};
312312

313313
// add padding to reach 4 bytes boundaries
314-
for _ in 0..self.extensions_padding {
314+
for _ in extension_payload_len..extension_payload_size as usize * 4 {
315315
buf.put_u8(0);
316316
}
317317
}

0 commit comments

Comments
 (0)