int function ( long arg0 ) { int loc0 = Util . binarySearchCeil ( timestampsUs , arg0 , true , false ) ; for ( int loc1 = loc0 ; loc1 < timestampsUs . length ; loc1 ++ ) { if ( ( flags [ loc1 ] & C . SAMPLE_FLAG_SYNC ) != 0 ) { return loc1 ; } } return NO_SAMPLE ; }
returns the sample index of the closest synchronization sample at or after the given timestamp , if one is available . concode_field_sep int sampleCount concode_elem_sep int[] sizes concode_elem_sep long[] offsets concode_elem_sep int[] flags concode_elem_sep int maximumSize concode_elem_sep int NO_SAMPLE concode_elem_sep long[] timestampsUs concode_field_sep int getIndexOfEarlierOrEqualSynchronizationSample