Skip to content

Commit 52da6b5

Browse files
committed
utils/sdp_parser: Fix rtp padding handling
1 parent a1af69d commit 52da6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/sdp_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Rtp_pkt_view Rtp_pkt_view::from_buffer(void *buf, size_t size){
187187
return ret;
188188

189189
uint8_t padding_bytes = ((uint8_t *)(ret.data))[ret.data_len - 1];
190-
if(padding_bytes < ret.data_len)
190+
if(padding_bytes > ret.data_len)
191191
return ret;
192192

193193
ret.data_len -= padding_bytes;

0 commit comments

Comments
 (0)