fn build_sample_flags(is_sync: bool) -> SampleFlags {
    let mut flags = SampleFlags::default();
    if is_sync {
        flags.sample_depends_on = 2;
    } else {
        flags.sample_is_non_sync_sample = true;
    }
    flags
}
// SampleFlags has a lot of bits, but really all we know is 'is this a key frame'.
// So ttransform that boolean into a 'SampleFlags'.
SampleFlags has a lot of bits, but really all we know is 'is this a key frame'.
So ttransform that boolean into a 'SampleFlags'.
SampleFlags has a lot of bits but really all we know is ' is this a key frame ' . So ttransform that boolean into a ' SampleFlags ' .
fn build_sample_flags(is_sync: bool) -> SampleFlags {
    let mut flags = SampleFlags::default();
    if is_sync {
        flags.sample_depends_on = 2;
    } else {
        flags.sample_is_non_sync_sample = true;
    }
    flags
}
fn build_sample_flags ( is_sync : bool ) -> SampleFlags { let mut flags = SampleFlags :: default ( ) ; if is_sync { flags . sample_depends_on = 2 ; } else { flags . sample_is_non_sync_sample = true ; } flags }
SampleFlags has a lot of bits, but really all we know is 'is this a key frame'.
SampleFlags has a lot of bits but really all we know is ' is this a key frame ' .
is_sync
bool
is_sync
bool