Skip to content

Commit 325da2a

Browse files
committed
update readme - I was referring to the old C style syntax
1 parent 1d88b1f commit 325da2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let streams = std::slice::from_raw_parts((*ifmt_ctx).streams, nb_streams)
4141
.map(|x| (*x).as_ref().expect("not null"))
4242
.collect::<Vec<&AVStream>>();
4343

44-
// C bindings require zero for loops 😌.
44+
// Nice not using the old `for (initialization; condition test; increment or decrement)` syntax 😌.
4545
for (index, stream_ptr) in streams.iter().enumerate() {
4646
let codecpar = *stream_ptr.codecpar;
4747
if codecpar.codec_type == AVMEDIA_TYPE_AUDIO {

0 commit comments

Comments
 (0)