Skip to content

Commit efbd331

Browse files
committed
ogg_pager: Fix Packets::read_count count check
1 parent 9db2cd8 commit efbd331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogg_pager/src/packets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl Packets {
129129
break;
130130
}
131131

132-
if count != -1 && packet_sizes.len() != read as usize {
132+
if count != -1 && packet_sizes.len() != count as usize {
133133
return Err(PageError::NotEnoughData);
134134
}
135135

0 commit comments

Comments
 (0)